Allow to change log level for journald logger on SIGHUP #993

Merged
dstepanov-yadro merged 1 commit from dstepanov-yadro/frostfs-node:fix/journald_logger_level into master 2024-02-19 13:52:59 +00:00

View file

@ -147,7 +147,7 @@ func newJournaldLogger(prm *Prm) (*Logger, error) {
encoder := zapjournald.NewPartialEncoder(zapcore.NewConsoleEncoder(c.EncoderConfig), zapjournald.SyslogFields)
core := zapjournald.NewCore(zap.NewAtomicLevelAt(prm.level), encoder, &journald.Journal{}, zapjournald.SyslogFields)
core := zapjournald.NewCore(lvl, encoder, &journald.Journal{}, zapjournald.SyslogFields)
coreWithContext := core.With([]zapcore.Field{
zapjournald.SyslogFacility(zapjournald.LogDaemon),
zapjournald.SyslogIdentifier(),