From 10633925a8584b92268005023a0b3a00ef9abe35 Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Thu, 3 Nov 2022 14:23:52 +0300 Subject: [PATCH] Migrating to unified logger interface --- logger.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/logger.go b/logger.go index 8833756..9d65fb3 100644 --- a/logger.go +++ b/logger.go @@ -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