aboutsummaryrefslogtreecommitdiffstats
path: root/yt
diff options
context:
space:
mode:
authorermolovd <ermolovd@yandex-team.com>2024-11-25 20:06:21 +0300
committerermolovd <ermolovd@yandex-team.com>2024-11-25 20:28:20 +0300
commite7ba55e67a7c19abf00ab200a28d7e0177e7fa7c (patch)
treec6e26a7db8f12e83141f768dc65c2a0fde06f0ae /yt
parent6bf5d4f51a33fcb62d474e6093381e8fc1540a9a (diff)
downloadydb-e7ba55e67a7c19abf00ab200a28d7e0177e7fa7c.tar.gz
Open log file in append mode by default
commit_hash:477d8692ac2c591d770fdf64664aa0be17d7d7b9
Diffstat (limited to 'yt')
-rw-r--r--yt/cpp/mapreduce/client/init.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/yt/cpp/mapreduce/client/init.cpp b/yt/cpp/mapreduce/client/init.cpp
index 3a68942cab..242bbcb2bb 100644
--- a/yt/cpp/mapreduce/client/init.cpp
+++ b/yt/cpp/mapreduce/client/init.cpp
@@ -181,7 +181,7 @@ void CommonInitialize(int, const char**)
if (logPath.empty()) {
logger = CreateStdErrLogger(logLevel);
} else {
- logger = CreateFileLogger(logLevel, logPath);
+ logger = CreateFileLogger(logLevel, logPath, /*append*/ true);
auto coreLoggingConfig = NLogging::TLogManagerConfig::CreateLogFile(logPath, ToCoreLogLevel(logLevel));
NLogging::TLogManager::Get()->Configure(coreLoggingConfig);