[Console] Fix metrics not exists print so much error log (#662)

Co-authored-by: zhangxu16 <zhangxu16@xiaomi.com>
This commit is contained in:
张旭
2020-12-16 18:31:30 +08:00
committed by GitHub
parent f419265801
commit 65c46248be

View File

@@ -110,7 +110,8 @@ public class DashboardCollectTask {
} }
catch (Exception e) { catch (Exception e) {
stopwatch.reset(); stopwatch.reset();
log.error("Exception caught: mqAdminExt get broker stats data TOPIC_PUT_NUMS failed", e); log.warn("Exception caught: mqAdminExt get broker stats data TOPIC_PUT_NUMS failed");
log.warn("Response [{}] ", e.getMessage());
} }
} }
} }
@@ -128,7 +129,8 @@ public class DashboardCollectTask {
outMsgCntToday += StatsAllSubCommand.compute24HourSum(bsd); outMsgCntToday += StatsAllSubCommand.compute24HourSum(bsd);
} }
catch (Exception e) { catch (Exception e) {
log.error("Exception caught: mqAdminExt get broker stats data GROUP_GET_NUMS failed", e); log.warn("Exception caught: mqAdminExt get broker stats data GROUP_GET_NUMS failed");
log.warn("Response [{}] ", e.getMessage());
} }
} }
} }