From ed3518d0755cb5cae25d9d8f1690ab2e60702588 Mon Sep 17 00:00:00 2001 From: Kujtim Hoxha Date: Mon, 21 Apr 2025 16:24:38 +0200 Subject: small things --- cmd/root.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cmd') diff --git a/cmd/root.go b/cmd/root.go index 545652a7a..8777acb82 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -182,7 +182,7 @@ func setupSubscriber[T any]( select { case event, ok := <-subCh: if !ok { - logging.Info("%s subscription channel closed", name) + logging.Info("subscription channel closed", "name", name) return } @@ -191,13 +191,13 @@ func setupSubscriber[T any]( select { case outputCh <- msg: case <-time.After(2 * time.Second): - logging.Warn("%s message dropped due to slow consumer", name) + logging.Warn("message dropped due to slow consumer", "name", name) case <-ctx.Done(): - logging.Info("%s subscription cancelled", name) + logging.Info("subscription cancelled", "name", name) return } case <-ctx.Done(): - logging.Info("%s subscription cancelled", name) + logging.Info("subscription cancelled", "name", name) return } } -- cgit v1.2.3