From 54531346eaebf56c26a790874486cb76579b9d7f Mon Sep 17 00:00:00 2001 From: Diogo Nogueira Date: Tue, 15 Oct 2024 17:28:38 +0200 Subject: [PATCH] fix(frontend-service): Made the logs clearer (#2045) Final logs fix. Realized they were not clear at all to an outside reader. Ref: SRX-BJVFRL --------- Co-authored-by: Sven Urbanski --- services/frontend-service/pkg/service/batch.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/frontend-service/pkg/service/batch.go b/services/frontend-service/pkg/service/batch.go index cb7a77b77..d3962718f 100644 --- a/services/frontend-service/pkg/service/batch.go +++ b/services/frontend-service/pkg/service/batch.go @@ -45,9 +45,9 @@ func (b *BatchServiceWithDefaultTimeout) ProcessBatch(ctx context.Context, req * if ctx.Err() != nil { if context.Cause(ctx) == kuberpultTimeoutError { - logger.FromContext(ctx).Warn("Context cancelled due to kuberpult timeout") + logger.FromContext(ctx).Warn("ProcessBatch context cancelled due to kuberpult timeout error", zap.Error(kuberpultTimeoutError)) } else { - logger.FromContext(ctx).Warn("Context cancelled due", zap.Error(context.Cause(ctx))) + logger.FromContext(ctx).Warn("ProcessBatch context cancelled NOT due to kuberpult timeout.", zap.Error(context.Cause(ctx))) } }