mirror of
https://github.com/NixOS/nix.git
synced 2025-11-22 02:09:36 +01:00
nix daemon: Respect json-log-path and re-open for every connection
We don't want to inherit the parent's JSON logger since then messages from different daemon processes may clobber each other.
This commit is contained in:
parent
bc3a847784
commit
502f027390
3 changed files with 21 additions and 18 deletions
|
|
@ -52,6 +52,14 @@ struct LoggerSettings : Config
|
|||
Whether Nix should print out a stack trace in case of Nix
|
||||
expression evaluation errors.
|
||||
)"};
|
||||
|
||||
Setting<Path> jsonLogPath{
|
||||
this, "", "json-log-path",
|
||||
R"(
|
||||
A path to which JSON records of Nix's log output will be
|
||||
written, in the same format as `--log-format internal-json`
|
||||
(without the `@nix ` prefixes on each line).
|
||||
)"};
|
||||
};
|
||||
|
||||
extern LoggerSettings loggerSettings;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue