Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit dec2a6c

Browse files
committed
fix: use fs path
1 parent 1cc9783 commit dec2a6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

engine/main.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ void RunServer() {
4646
std::filesystem::path(config.logFolderPath) /
4747
std::filesystem::path(cortex_utils::logs_folder));
4848
trantor::FileLogger asyncFileLogger;
49-
asyncFileLogger.setFileName(config.logFolderPath + "/" +
50-
cortex_utils::logs_base_name);
49+
asyncFileLogger.setFileName((std::filesystem::path(config.logFolderPath) /
50+
std::filesystem::path(cortex_utils::logs_base_name)).string());
5151
asyncFileLogger.setMaxLines(config.maxLogLines); // Keep last 100000 lines
5252
asyncFileLogger.startLogging();
5353
trantor::Logger::setOutputFunction(

0 commit comments

Comments
 (0)