mirror of
https://gitea.windcorp.ru/Wind-Corporation/Progressia.git
synced 2025-04-21 23:10:46 +03:00
TMP / "run" dir is now next to binary
This commit is contained in:
parent
44ed00f76c
commit
91ea34695c
@ -46,9 +46,9 @@ class LogSinkBackend {
|
|||||||
namespace {
|
namespace {
|
||||||
std::ofstream openLogFile() {
|
std::ofstream openLogFile() {
|
||||||
// FIXME this is relative to bin, not root dir
|
// FIXME this is relative to bin, not root dir
|
||||||
std::filesystem::create_directories("../run");
|
std::filesystem::create_directories("run");
|
||||||
std::filesystem::create_directories("../run/logs");
|
std::filesystem::create_directories("run/logs");
|
||||||
return std::ofstream("../run/logs/latest.log");
|
return std::ofstream("run/logs/latest.log");
|
||||||
}
|
}
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user