From 2e43665266f8109862c36ded25702680460790a1 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 4 Apr 2024 14:02:57 +0100 Subject: [PATCH] Log the services directory when chdiring to it. --- src/init.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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