Skip to content

Commit

Permalink
add tid in log
Browse files Browse the repository at this point in the history
  • Loading branch information
emilolosutean committed Oct 12, 2018
1 parent 3315b62 commit 66b5db1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions queuehandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ func (h *queueHandler) init() {

func (h *queueHandler) queueConsume(m consumer.Message) {
if m.Headers["Origin-System-Id"] != nextVideoOrigin {
log.WithField("queue_topic", h.consumerConfig.Topic).Infof("Ignoring message with different Origin-System-Id: %v", m.Headers["Origin-System-Id"])
log.WithTransactionID(m.Headers["X-Request-Id"]).WithField("queue_topic", h.consumerConfig.Topic).Infof("Ignoring message with different Origin-System-Id: %v", m.Headers["Origin-System-Id"])
return
}
if strings.Contains(m.Headers["Content-Type"], "audio") {
log.WithField("queue_topic", h.consumerConfig.Topic).Infof("Ignoring message with Content-Type: %v", m.Headers["Content-Type"])
log.WithTransactionID(m.Headers["X-Request-Id"]).WithField("queue_topic", h.consumerConfig.Topic).Infof("Ignoring message with Content-Type: %v", m.Headers["Content-Type"])
return
}
lastModified := m.Headers["Message-Timestamp"]
Expand Down

0 comments on commit 66b5db1

Please sign in to comment.