Migrating to unified logger interface

This commit is contained in:
Pavel Shevaev 2022-11-03 14:23:52 +03:00
parent 1d19526629
commit 10633925a8
1 changed files with 2 additions and 2 deletions

View File

@ -14,13 +14,13 @@ type EventReceiver struct {
// Event receives a simple notification when various events occur
func (n *EventReceiver) Event(eventName string) {
n.logger.WithCallDepth(3).V(1).Info(eventName)
n.logger.WithCallDepth(2).V(1).Info(eventName)
}
// EventKv receives a notification when various events occur along with
// optional key/value data
func (n *EventReceiver) EventKv(eventName string, kvs map[string]string) {
n.logger.WithCallDepth(3).V(1).Info(eventName)
n.logger.WithCallDepth(2).V(1).Info(eventName)
}
// EventErr receives a notification of an error if one occurs