Skip to content

Commit

Permalink
chore: simplifly log message
Browse files Browse the repository at this point in the history
  • Loading branch information
erzhae committed Oct 23, 2024
1 parent 5a520f6 commit fd51ce2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func (c Client) Publish(ctx context.Context, topicId string, msg Message) (strin

messageId, err := result.Get(ctx)
if err != nil {
fmt.Printf("[pubsub][onMessagePublishErr] error: %v", err)
fmt.Printf("[pubsub][onMessagePublishErr] err: %s", err.Error())
return "", err
}

Expand Down Expand Up @@ -170,7 +170,7 @@ func (c Client) Subscribe(ctx context.Context, subscriptionId string, conf Subsc
Publish: msg.PublishTime,
DeliveryAttempt: msg.DeliveryAttempt,
}
fmt.Printf("[pubsub][onMessageReceived] %+v", message)
fmt.Printf("[pubsub][onMessageReceived] id: %s", message.Id)

err := handler(ctx, message)
if err != nil {
Expand Down

0 comments on commit fd51ce2

Please sign in to comment.