mirror of
https://github.com/safing/portbase
synced 2025-09-16 18:19:50 +00:00
Improve module failure status notify callback handling
This commit is contained in:
parent
2157351757
commit
3f3786b854
3 changed files with 47 additions and 34 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue