first commit

This commit is contained in:
cxh 2025-09-08 15:32:07 +08:00
parent ef8217467e
commit 2b7b79d5bc

View File

@ -21,11 +21,12 @@ int main()
signal(SIGPIPE, SIG_IGN); signal(SIGPIPE, SIG_IGN);
// 初始化日志文件 // 初始化日志文件
Logger::set_log_to_file("app.log"); Logger::set_log_to_file(get_executable_dir_file_path("app.log"));
try try
{ {
g_app_config = AppConfig::load_from_file("config.json"); // 从可执行文件所在目录读取配置文件
g_app_config = AppConfig::load_from_file(get_executable_dir_file_path("config.json"));
} }
catch (const std::exception &e) catch (const std::exception &e)
{ {