first commit
This commit is contained in:
parent
ef8217467e
commit
2b7b79d5bc
@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user