Improve module failure status notify callback handling

This commit is contained in:
Daniel 2021-05-05 17:46:09 +02:00
parent 2157351757
commit 3f3786b854
3 changed files with 47 additions and 34 deletions

View file

@ -9,7 +9,7 @@ import (
// notification will be reflected on the module failure status.
func (n *Notification) AttachToModule(m *modules.Module) {
if m == nil {
log.Warningf("notifications: cannot remove attached module from notification %s", n.EventID)
log.Warningf("notifications: invalid usage: cannot attach %s to nil module", n.EventID)
return
}