Merge: nixos/matrix-synapse: Fix merging log configuration (#409839)
This commit is contained in:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user