From f73e9e606b61324f4ac34d3f506b7cbaf87713c7 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 11 Aug 2023 12:39:49 +0100 Subject: Rename the error log level to critical. "ERROR" is apparently defined by more than just Windows. Let's pick a different name which is less likely to cause collisions. --- src/configreader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/configreader.cpp') diff --git a/src/configreader.cpp b/src/configreader.cpp index 1fb12dc0d..098753555 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -739,7 +739,7 @@ void ConfigReaderThread::OnStop() } catch (const CoreException& modex) { - ServerInstance->Logs.Error("MODULE", "Unable to read the configuration for {}: {}", + ServerInstance->Logs.Critical("MODULE", "Unable to read the configuration for {}: {}", mod->ModuleSourceFile, modex.what()); if (user) user->WriteNotice(modname + ": " + modex.GetReason()); @@ -756,7 +756,7 @@ void ConfigReaderThread::OnStop() } catch (const CoreException& ex) { - ServerInstance->Logs.Error("LOG", "Cannot open log files: " + ex.GetReason()); + ServerInstance->Logs.Critical("LOG", "Cannot open log files: " + ex.GetReason()); if (user) user->WriteNotice("Cannot open log files: " + ex.GetReason()); } -- cgit v1.3.1-10-gc9f91