Skip to content

Commit

Permalink
Fixed log path not working
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackarain committed Oct 30, 2023
1 parent 1a143fd commit 14c19aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/proxy_server/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,6 @@ int main(int argc, char** argv)
return EXIT_SUCCESS;
}

init_logging(log_directory);

if (vm.count("config"))
{
if (!fs::exists(config))
Expand All @@ -278,6 +276,8 @@ int main(int argc, char** argv)
util::toggle_write_logging(true);
}

init_logging(log_directory);

print_args(argc, argv, vm);

LOG_DBG << "Start socks server: " << socks_listen;
Expand Down

0 comments on commit 14c19aa

Please sign in to comment.