mirror of
https://github.com/NixOS/nix.git
synced 2025-11-22 02:09:36 +01:00
Cleanup
This commit is contained in:
parent
c8692b378b
commit
17d0810a7c
4 changed files with 18 additions and 21 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue