Skip to content

Commit

Permalink
Added suggestion for logs consistency.
Browse files Browse the repository at this point in the history
Co-authored-by: Sven Urbanski <[email protected]>
  • Loading branch information
1 parent 7860a05 commit ff28e34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/frontend-service/pkg/service/batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (b *BatchServiceWithDefaultTimeout) ProcessBatch(ctx context.Context, req *

if ctx.Err() != nil {
if context.Cause(ctx) == kuberpultTimeoutError {
logger.FromContext(ctx).Warn(fmt.Sprintf("ProcessBatch context cancelled due to %s", kuberpultTimeoutError.Error()))
logger.FromContext(ctx).Warn("ProcessBatch context cancelled due to kuberpult timeout error", zap.Error(kuberpultTimeoutError))
} else {
logger.FromContext(ctx).Warn("ProcessBatch context cancelled NOT due to kuberpult timeout.", zap.Error(context.Cause(ctx)))
}
Expand Down

0 comments on commit ff28e34

Please sign in to comment.