Skip to content

Commit

Permalink
Logs should not interpolate strings.
Browse files Browse the repository at this point in the history
  • Loading branch information
cscatolini committed Jan 19, 2017
1 parent 696e19c commit e8d531e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion extensions/apns_message_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ func (a *APNSMessageHandler) handleAPNSResponse(res push.Response) error {
inflightMessagesMetadataLock.Unlock()

if err != nil {
l.Errorf("error sending feedback to reporter: %v", err)
l.WithError(err).Error("error sending feedback to reporter")
}
if res.Err != nil {
pushError, ok := res.Err.(*push.Error)
Expand Down
2 changes: 1 addition & 1 deletion extensions/gcm_message_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ func (g *GCMMessageHandler) handleGCMResponse(cm gcm.CCSMessage) error {

err = sendToFeedbackReporters(g.feedbackReporters, ccsMessageWithMetadata)
if err != nil {
l.Errorf("error sending feedback to reporter: %v", err)
l.WithError(err).Error("error sending feedback to reporter")
}
if cm.Error != "" {
pErr := errors.NewPushError(strings.ToLower(cm.Error), cm.ErrorDescription)
Expand Down
4 changes: 2 additions & 2 deletions extensions/kafka_consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ func (q *KafkaConsumer) handlePartitionEOF(ev kafka.Event) {
"partition": fmt.Sprintf("%v", ev),
})

l.Debugf("Reached partition EOF.")
l.Debug("Reached partition EOF.")
}

func (q *KafkaConsumer) handleOffsetsCommitted(ev kafka.Event) {
Expand All @@ -276,7 +276,7 @@ func (q *KafkaConsumer) handleOffsetsCommitted(ev kafka.Event) {
"partition": fmt.Sprintf("%v", ev),
})

l.Debugf("Offsets committed successfully.")
l.Debug("Offsets committed successfully.")
}

func (q *KafkaConsumer) handleError(ev kafka.Event) {
Expand Down

0 comments on commit e8d531e

Please sign in to comment.