forked from TrueCloudLab/frostfs-s3-gw
[#551] Refactor notifications logs
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
parent
e84ff96593
commit
f72bc538b9
2 changed files with 3 additions and 3 deletions
|
@ -44,7 +44,9 @@ func New(log *zap.Logger, obj layer.Client, notificator Notificator, cfg *Config
|
|||
return nil, errors.New("empty logger")
|
||||
}
|
||||
|
||||
if cfg.NotificatorEnabled && notificator == nil {
|
||||
if !cfg.NotificatorEnabled {
|
||||
log.Warn("notificator is disabled, s3 won't produce notification events")
|
||||
} else if notificator == nil {
|
||||
return nil, errors.New("empty notificator")
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue