1
0
mirror of https://github.com/anope/anope.git synced 2026-07-03 06:53:14 +02:00

Log the services directory when chdiring to it.

This commit is contained in:
Sadie Powell
2024-04-04 14:02:57 +01:00
parent 8b4cd65e2a
commit 2e43665266
+3 -1
View File
@@ -423,13 +423,15 @@ bool Anope::Init(int ac, char **av)
Anope::LogDir = arg;
}
Log(LOG_TERMINAL) << "Anope " << Anope::Version() << ", " << Anope::VersionBuildString();
/* Chdir to Anope data directory. */
Log() << "Moving to " << Anope::ServicesDir;
if (chdir(Anope::ServicesDir.c_str()) < 0)
{
throw CoreException("Unable to chdir to " + Anope::ServicesDir + ": " + Anope::LastError());
}
Log(LOG_TERMINAL) << "Anope " << Anope::Version() << ", " << Anope::VersionBuildString();
Log(LOG_TERMINAL) << "Using configuration file " << Anope::ExpandConfig(ServicesConf.GetName());
#ifndef _WIN32