Print meter size when it exceeds the maximum value (#392)

This commit is contained in:
Stephen Ni 2022-11-21 14:25:33 +08:00 committed by GitHub
parent d541b7bc63
commit 6cb2b4290f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -56,7 +56,8 @@ public class MeterService implements BootService, Runnable {
}
if (meterMap.size() >= Config.Meter.MAX_METER_SIZE) {
LOGGER.warn(
"Already out of the meter system max size, will not report. meter name:{}", meter.getName());
"Already out of the meter system max size [{}], will not report. meter name:{}, meter size:{}",
Config.Meter.MAX_METER_SIZE, meter.getName(), meterMap.size());
return meter;
}