Issue Description
Describe what happened (or what feature you want)
if (flushInterval <= 0) {
RecordLog.info("[FlowRuleManager] The MetricTimerListener isn't started. If you want to start it, "
+ "please change the value(current: {}) of config({}) more than 0 to start it.", flushInterval,
SentinelConfig.METRIC_FLUSH_INTERVAL);
return;
}
it is logging with info-level.
Describe what you expected to happen
There should log with warn-level because if flushInterval <= 0
there should be a warning.
2条答案
按热度按时间cigdeys31#
I think
info
level is better here. because the interval value is set by user self. he know what mean about this action. it's just a info mean this parameter work.hc2pp10m2#
I think
info
level is better here. because the interval value is set by user self. he know what mean about this action. it's just a info mean this parameter work.Maybe someone is not aware of being configuring the interval smaller than 0 himself.By this,it is more obvious for him when the warning but not info shows.And it is abnormal to configure interval smaller than 0 because this will cause the SCHEDULER not to work.