Skip to content

Commit

Permalink
Output msgId only when logging ack/fails.
Browse files Browse the repository at this point in the history
Updated issue apache#2909 to only output the message ID for log messages
produced by nextTuple, ack, and fail within SupplierSource and
ComplexSource.
  • Loading branch information
jmark99 committed Feb 15, 2019
1 parent cdbda41 commit 2ea536f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public void nextTuple() {
collector.emit(new Values(tuple));
}
// TODO change logging level
LOG.info("Emitting: " + new Values(tuple, msgId));
LOG.info("Emitting: [" + msgId + "]");
}
}
}
Expand All @@ -100,7 +100,7 @@ public void nextTuple() {
Values values = new Values(msgIdCache.getIfPresent(mid));
collector.emit(values, mid);
// TODO change logging level
LOG.info("Re-emit: [" + values.get(0) + ", " + mid + "]");
LOG.info("Re-emit: [" + mid + "]");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public void open(Map map, TopologyContext topologyContext, SpoutOutputCollector
collector.emit(new Values(data));
}
// TODO change logging level
LOG.info("Emitting: " + new Values(data, msgId));
LOG.info("Emitting: [" + msgId + "]");
}

@Override public void ack(Object mid) {
Expand All @@ -82,7 +82,7 @@ public void open(Map map, TopologyContext topologyContext, SpoutOutputCollector
Values values = new Values(msgIdCache.getIfPresent(mid));
collector.emit(values, mid);
// TODO change logging level
LOG.info("Re-emit: [" + values.get(0) + ", " + mid + "]");
LOG.info("Re-emit: [" + mid + "]");
}
}
}

0 comments on commit 2ea536f

Please sign in to comment.