summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-04-04 14:02:57 +0100
committerSadie Powell <sadie@witchery.services>2024-04-04 14:02:57 +0100
commit2e43665266f8109862c36ded25702680460790a1 (patch)
tree8a07b715e849dc0e62edae76561aae351c066524 /src
parent8b4cd65e2aed386327d19902843bae5e3a19126c (diff)
Log the services directory when chdiring to it.
Diffstat (limited to 'src')
-rw-r--r--src/init.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp
index 7c760d1af..42d593d80 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -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