Skip to content

Commit

Permalink
fix bad logging message
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Nguyen Van Than committed Jul 15, 2015
1 parent 8d97a99 commit 5c31a46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/pinterest/secor/common/OffsetTracker.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ public long setLastSeenOffset(TopicPartition topicPartition, long offset) {
mLastSeenOffset.put(topicPartition, offset);
if (lastSeenOffset + 1 != offset) {
if (lastSeenOffset >= 0) {
LOG.warn("offset for topic {} partition {} changed from {} to {}",
LOG.warn("offset for topic {} partition {} changed from {} to {}",
topicPartition.getTopic(),topicPartition.getPartition(),lastSeenOffset, offset);
} else {
LOG.info("starting to consume topic {} partition from offset {}",
LOG.info("starting to consume topic {} partition {} from offset {}",
topicPartition.getTopic(),topicPartition.getPartition(),offset);
}
}
Expand Down

0 comments on commit 5c31a46

Please sign in to comment.