mirror of
https://github.com/goharbor/harbor.git
synced 2024-09-28 21:37:31 +02:00
fix: webhook log (#15756)
Signed-off-by: Shengwen Yu <yshengwen@vmware.com> Co-authored-by: Shengwen Yu <yshengwen@vmware.com>
This commit is contained in:
parent
4632e49cc0
commit
4d89c845d0
@ -202,7 +202,7 @@ func (nw *NotificationWatcher) Notify(notification Notification) error {
|
|||||||
// Currently, we just log the error
|
// Currently, we just log the error
|
||||||
log.Errorf("Error occurred when triggering handler %s of topic %s: %s\n", reflect.TypeOf(hd).String(), notification.Topic, err.Error())
|
log.Errorf("Error occurred when triggering handler %s of topic %s: %s\n", reflect.TypeOf(hd).String(), notification.Topic, err.Error())
|
||||||
} else {
|
} else {
|
||||||
log.Infof("Handle notification with Handler '%s' on topic '%s': %s\n", hd.Name(), notification.Topic, notification.Value)
|
log.Infof("Handle notification with Handler '%s' on topic '%s': %+v\n", hd.Name(), notification.Topic, notification.Value)
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
}(h, handlerChan)
|
}(h, handlerChan)
|
||||||
|
Loading…
Reference in New Issue
Block a user