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:
parent
d7a9e5346c
commit
5c91f2e5d7
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue