I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Unverified Commit 7a1b1743 authored by idk's avatar idk
Browse files

StatManager: reduce log levels back to debug when stats are not present

parent 6601e562
No related branches found
No related tags found
No related merge requests found
...@@ -161,8 +161,8 @@ public class StatManager { ...@@ -161,8 +161,8 @@ public class StatManager {
if (freq != null) if (freq != null)
freq.eventOccurred(); freq.eventOccurred();
else else
if (_log.shouldLog(Log.WARN)) if (_log.shouldLog(Log.DEBUG)
_log.warn("Invalid frequency stat : " + name); _log.debug("Invalid frequency stat : " + name);
} }
/** update the given rate statistic, taking note that the given data point was received (and recalculating all rates) */ /** update the given rate statistic, taking note that the given data point was received (and recalculating all rates) */
...@@ -171,8 +171,8 @@ public class StatManager { ...@@ -171,8 +171,8 @@ public class StatManager {
if (stat != null) if (stat != null)
stat.addData(data, eventDuration); stat.addData(data, eventDuration);
else else
if (_log.shouldLog(Log.WARN)) if (_log.shouldLog(Log.DEBUG)
_log.warn("Invalid rate stat : " + name); _log.debug("Invalid rate stat : " + name);
} }
/** /**
...@@ -185,8 +185,8 @@ public class StatManager { ...@@ -185,8 +185,8 @@ public class StatManager {
if (stat != null) if (stat != null)
stat.addData(data); stat.addData(data);
else else
if (_log.shouldLog(Log.WARN)) if (_log.shouldLog(Log.DEBUG)
_log.warn("Invalid rate stat : " + name); _log.debug("Invalid rate stat : " + name);
} }
public synchronized void coalesceStats() { public synchronized void coalesceStats() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment