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:
+3
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user