From 91ea34695cc2ba7a0b3b7f88a9982a52332f9068 Mon Sep 17 00:00:00 2001 From: OLEGSHA Date: Sun, 12 Mar 2023 22:02:28 +0100 Subject: [PATCH] TMP / "run" dir is now next to binary --- main/logging.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main/logging.cpp b/main/logging.cpp index c017250..bbd8e8d 100644 --- a/main/logging.cpp +++ b/main/logging.cpp @@ -46,9 +46,9 @@ class LogSinkBackend { namespace { std::ofstream openLogFile() { // FIXME this is relative to bin, not root dir - std::filesystem::create_directories("../run"); - std::filesystem::create_directories("../run/logs"); - return std::ofstream("../run/logs/latest.log"); + std::filesystem::create_directories("run"); + std::filesystem::create_directories("run/logs"); + return std::ofstream("run/logs/latest.log"); } } // namespace