Skip to content

Commit

Permalink
Logging format (cadence-workflow#291)
Browse files Browse the repository at this point in the history
  • Loading branch information
sivakku authored Jul 28, 2017
1 parent c06bbbb commit 3ac1e5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/history/shardContext.go
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ func (s *shardContextImpl) allocateTimerIDsLocked(timerTasks []persistence.Task)
if ts.Before(s.shardInfo.TimerAckLevel) {
// This is not a common scenario, the shard can move and new host might have a time SKU.
// We generate a new timer ID that is above the ack level with an offset.
s.logger.Warn("%v: New timer generated is less than ack level. timestamp: %v, ackLevel: %v",
s.logger.Warnf("%v: New timer generated is less than ack level. timestamp: %v, ackLevel: %v",
time.Now(), ts, s.shardInfo.TimerAckLevel)
newTimestamp := s.shardInfo.TimerAckLevel
persistence.SetVisibilityTSFrom(task, newTimestamp.Add(time.Second))
Expand Down

0 comments on commit 3ac1e5a

Please sign in to comment.