1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-22 02:09:36 +01:00
This commit is contained in:
Eelco Dolstra 2025-03-26 23:49:35 +01:00
parent c8692b378b
commit 17d0810a7c
4 changed files with 18 additions and 21 deletions

View file

@ -1050,17 +1050,7 @@ void processConnection(
if (!recursive) {
prevLogger_ = std::move(logger);
logger = std::move(tunnelLogger_);
if (!loggerSettings.jsonLogPath.get().empty()) {
try {
std::vector<std::unique_ptr<Logger>> loggers;
loggers.push_back(std::move(logger));
loggers.push_back(makeJSONLogger(std::filesystem::path(loggerSettings.jsonLogPath.get()), false));
logger = makeTeeLogger(std::move(loggers));
} catch (...) {
ignoreExceptionExceptInterrupt();
}
}
applyJSONLogger();
}
unsigned int opCount = 0;