From cd5252a473a0da2f0f341b9b790c35269b625f92 Mon Sep 17 00:00:00 2001 From: SantaSpeen Date: Tue, 27 Sep 2022 12:46:26 +0300 Subject: [PATCH] Change *.log naming. --- src/TConsole.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TConsole.cpp b/src/TConsole.cpp index f6eb1fa..5566cad 100644 --- a/src/TConsole.cpp +++ b/src/TConsole.cpp @@ -50,7 +50,7 @@ std::string GetDate() { } void TConsole::BackupOldLog() { - fs::path Path = "Server.log"; + fs::path Path = "server.log"; if (fs::exists(Path)) { auto OldLog = Path.filename().stem().string() + ".old.log"; try { @@ -98,7 +98,7 @@ void TConsole::BackupOldLog() { } void TConsole::StartLoggingToFile() { - mLogFileStream.open("Server.log"); + mLogFileStream.open("server.log"); Application::Console().Internal().on_write = [this](const std::string& ToWrite) { // TODO: Sanitize by removing all ansi escape codes (vt100) std::unique_lock Lock(mLogFileStreamMtx);