Skip to content

Commit

Permalink
style: better output formatting for processor
Browse files Browse the repository at this point in the history
  • Loading branch information
Wil Simpson committed Dec 11, 2024
1 parent 8a93e64 commit 3f51fcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/bus/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (bp *DefaultBusProcessor[T]) StartProcessing(ctx context.Context) {
bp.mu.Unlock()
}()

log.Logger.WithContext(ctx).Infof("Starting bus processor for %T", bp.Reader)
log.Logger.WithContext(ctx).Infof("Starting bus processor for %s", bp.Reader.GetMessageType())
for bp.isProcessing {
err := bp.process(ctx)
if errors.Is(err, ErrProcessingFailed) {
Expand Down Expand Up @@ -122,6 +122,6 @@ func (bp *DefaultBusProcessor[T]) StopProcessing() {
return
}

log.Logger.Infof("Stopping bus processor for %T", bp.Reader)
log.Logger.Infof("Stopping bus processor for %s", bp.Reader.GetMessageType())
bp.isProcessing = false
}

0 comments on commit 3f51fcf

Please sign in to comment.