Skip to content

Commit

Permalink
fix(frontend-service): Made the logs clearer (#2045)
Browse files Browse the repository at this point in the history
Final logs fix. Realized they were not clear at all to an outside
reader.

Ref: SRX-BJVFRL

---------

Co-authored-by: Sven Urbanski <[email protected]>
  • Loading branch information
1 parent c4ee6ba commit 5453134
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/frontend-service/pkg/service/batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
}
}

Expand Down

0 comments on commit 5453134

Please sign in to comment.