Skip to content

Commit

Permalink
Fix header of observer statistic logger.
Browse files Browse the repository at this point in the history
Check observeRequests instead of observes. observes may be reset to 0,
observeRequests will not be reset.

Signed-off-by: Achim Kraus <[email protected]>
  • Loading branch information
boaks committed Feb 6, 2023
1 parent 99a87ca commit a438131
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public void dump() {
try {
if (isEnabled()) {
if (LOGGER.isDebugEnabled()) {
if (observes.isUsed()) {
if (observeRequests.isUsed()) {
StringBuilder log = new StringBuilder();
String eol = StringUtil.lineSeparator();
String head = " " + tag;
Expand All @@ -74,7 +74,7 @@ public void dump() {
log.append(head).append(endpoints).append(eol);
log.append(head).append(observeRequests).append(eol);
log.append(head).append(cancelRequests).append(eol);
log.append(tag).append(rejectedNotifies);
log.append(head).append(rejectedNotifies);
LOGGER.debug("{}", log);
}
}
Expand Down

0 comments on commit a438131

Please sign in to comment.