diff --git a/logs/zap/example_test.go b/logs/zap/example_test.go index e0db8954ffa3346acf55446342fb3bc80fca2e98..f03a1291c4e036c7c6f769e9dd8aed1c07ca539d 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"}}), ) }