Skip to content

Commit 30eda4b

Browse files
authored
Merge pull request #21 from ONSdigital/message-logging
Add message id to logging
2 parents 5598e6f + fadb45d commit 30eda4b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

_infra/helm/csv-worker/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ version: 1.0.1
1818

1919
# This is the version number of the application being deployed. This version number should be
2020
# incremented each time you make changes to the application.
21-
appVersion: 1.0.18
21+
appVersion: 1.0.19

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func (cw CSVWorker) subscribe(ctx context.Context, client *pubsub.Client) {
5252
cctx, cancel := context.WithCancel(ctx)
5353
logger.Debug("waiting to receive")
5454
err := sub.Receive(cctx, func(ctx context.Context, msg *pubsub.Message) {
55-
logger.Info("sample received - processing")
55+
logger.Info("sample received - processing", zap.String("messageId", msg.ID))
5656
logger.Debug("sample data", zap.String("data", string(msg.Data)))
5757

5858
if msg.DeliveryAttempt != nil {

0 commit comments

Comments
 (0)