dedicated_room: properly initialize logging (#7468)

This commit is contained in:
liushuyu 2024-02-27 08:06:28 -07:00 committed by GitHub
parent f4768cd26c
commit 69e758d738
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -152,6 +152,7 @@ static void SaveBanList(const Network::Room::BanList& ban_list, const std::strin
static void InitializeLogging(const std::string& log_file) { static void InitializeLogging(const std::string& log_file) {
Common::Log::Initialize(log_file); Common::Log::Initialize(log_file);
Common::Log::SetColorConsoleBackendEnabled(true); Common::Log::SetColorConsoleBackendEnabled(true);
Common::Log::Start();
} }
/// Application entry point /// Application entry point