mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
Merge: nixos/matrix-synapse: Fix merging log configuration (#409839)
This commit is contained in:
commit
cf0370b028
1 changed files with 7 additions and 6 deletions
|
@ -124,12 +124,13 @@ let
|
|||
genLogConfigFile =
|
||||
logName:
|
||||
format.generate "synapse-log-${logName}.yaml" (
|
||||
cfg.log
|
||||
// optionalAttrs (cfg.log ? handlers.journal) {
|
||||
handlers.journal = cfg.log.handlers.journal // {
|
||||
SYSLOG_IDENTIFIER = logName;
|
||||
};
|
||||
}
|
||||
attrsets.recursiveUpdate cfg.log (
|
||||
optionalAttrs (cfg.log ? handlers.journal) {
|
||||
handlers.journal = cfg.log.handlers.journal // {
|
||||
SYSLOG_IDENTIFIER = logName;
|
||||
};
|
||||
}
|
||||
)
|
||||
);
|
||||
|
||||
toIntBase8 =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue