fix(log_file): remove recursion

This commit is contained in:
FutureRave 2023-01-29 16:31:52 +00:00
parent 815ebbdefa
commit 30ba63bb56
No known key found for this signature in database
GPG Key ID: 22F9079C86CFAB31
2 changed files with 2 additions and 1 deletions

View File

@ -31,7 +31,7 @@ void log_file::com_open_log_file()
file_system::open_file_by_mode(log_file_name, game::native::logfile, game::native::FS_APPEND_SYNC); file_system::open_file_by_mode(log_file_name, game::native::logfile, game::native::FS_APPEND_SYNC);
asctime_s(time_buffer, sizeof(time_buffer), &new_time); asctime_s(time_buffer, sizeof(time_buffer), &new_time);
info(std::format("logfile opened on {}\n", time_buffer)); std::cout << "logfile opened on " << time_buffer << "\n"; // no recursive call to 'info'
opening_qconsole = 0; opening_qconsole = 0;
com_console_log_open_failed = *game::native::logfile == 0; com_console_log_open_failed = *game::native::logfile == 0;
} }

View File

@ -44,6 +44,7 @@
#include <format> #include <format>
#include <fstream> #include <fstream>
#include <functional> #include <functional>
#include <iostream>
#include <map> #include <map>
#include <mutex> #include <mutex>
#include <queue> #include <queue>