From e2fcb13281bbeb22d56cde2c62b468c4e9f51908 Mon Sep 17 00:00:00 2001 From: Semyon Krestyaninov <ensiouel@gmail.com> Date: Thu, 29 Feb 2024 09:44:45 +0300 Subject: [PATCH] fix tests --- logs/zap/example_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/logs/zap/example_test.go b/logs/zap/example_test.go index e0db8954..f03a1291 100644 --- a/logs/zap/example_test.go +++ b/logs/zap/example_test.go @@ -77,7 +77,7 @@ func TestExample(t *testing.T) { logger.Info("Successfully created", logzap.Event(items.EventCreateItem), logzap.Object(item), - logzap.CallerFromContext(ctx), + logzap.CallerFromContext(ctx, item.SpaceID), logzap.Tags("tag1", "tag2", "tag3"), ) @@ -85,7 +85,7 @@ func TestExample(t *testing.T) { logger.Warn("Successfully updated", logzap.Event(items.EventUpdateItem), logzap.Object(item), - logzap.CallerFromContext(ctx), + logzap.CallerFromContext(ctx, item.SpaceID), logzap.Attr(map[string]map[string]any{"title": {"old": "old title", "new": "new title"}}), ) } -- GitLab