aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/diag/logging.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2024-03-25 22:57:24 +0100
committerGitHub Enterprise <[email protected]>2024-03-25 22:57:24 +0100
commit9fef50ff26e5c9c56e0794947305429f27da17e8 (patch)
treed610ef436b5ded08d62492618a1b80d3ac802f72 /src/zenserver/diag/logging.cpp
parentadd a limit to the number of times we attempt to finalize (#22) (diff)
downloadzen-9fef50ff26e5c9c56e0794947305429f27da17e8.tar.xz
zen-9fef50ff26e5c9c56e0794947305429f27da17e8.zip
consistent paths encoding (#24)
* Don't encode filesystem path to UTF8 unless stored in compactbinary string * Be consistent where we encode/decode paths to UTF8
Diffstat (limited to 'src/zenserver/diag/logging.cpp')
-rw-r--r--src/zenserver/diag/logging.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zenserver/diag/logging.cpp b/src/zenserver/diag/logging.cpp
index dc1675819..595be70cb 100644
--- a/src/zenserver/diag/logging.cpp
+++ b/src/zenserver/diag/logging.cpp
@@ -37,7 +37,7 @@ InitializeServerLogging(const ZenServerOptions& InOptions)
std::filesystem::path HttpLogPath = InOptions.DataDir / "logs" / "http.log";
zen::CreateDirectories(HttpLogPath.parent_path());
- auto HttpSink = std::make_shared<zen::logging::RotatingFileSink>(zen::PathToUtf8(HttpLogPath),
+ auto HttpSink = std::make_shared<zen::logging::RotatingFileSink>(HttpLogPath,
/* max size */ 128 * 1024 * 1024,
/* max files */ 16,
/* rotate on open */ true);
@@ -49,7 +49,7 @@ InitializeServerLogging(const ZenServerOptions& InOptions)
std::filesystem::path CacheLogPath = InOptions.DataDir / "logs" / "z$.log";
zen::CreateDirectories(CacheLogPath.parent_path());
- auto CacheSink = std::make_shared<zen::logging::RotatingFileSink>(zen::PathToUtf8(CacheLogPath),
+ auto CacheSink = std::make_shared<zen::logging::RotatingFileSink>(CacheLogPath,
/* max size */ 128 * 1024 * 1024,
/* max files */ 16,
/* rotate on open */ false);