1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-17 06:21:06 +01:00

Set the log format to raw when the pager is used

The `bar` logger sents a bunch of things to stderr that messes-up the
pager output
This commit is contained in:
Théophane Hufschmitt 2023-06-12 08:52:24 +02:00
parent d7a9e5346c
commit 5c91f2e5d7

View file

@ -382,6 +382,7 @@ RunPager::RunPager()
stdout = fcntl(STDOUT_FILENO, F_DUPFD_CLOEXEC, 0); stdout = fcntl(STDOUT_FILENO, F_DUPFD_CLOEXEC, 0);
if (dup2(toPager.writeSide.get(), STDOUT_FILENO) == -1) if (dup2(toPager.writeSide.get(), STDOUT_FILENO) == -1)
throw SysError("dupping stdout"); throw SysError("dupping stdout");
setLogFormat(LogFormat::raw);
} }