File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,6 +41,9 @@ def __init__(self, args=None):
4141 self .args .log_level = 'info'
4242 self .args .metric_grouping_interval = self .METRIC_GROUPING_INTERVAL
4343
44+ if self .args .metric_grouping_interval is None :
45+ self .args .metric_grouping_interval = self .METRIC_GROUPING_INTERVAL
46+
4447 self .log = init_logger (
4548 fmt = self .args .log_format ,
4649 quiet = self .args .quiet ,
Original file line number Diff line number Diff line change 1616_GLOBAL_LOG_CONFIGURED = False
1717
1818HOSTNAME = socket .gethostname ()
19- METRIC_GROUPING_INTERVAL = 1 # one second
2019METRICS_STATE = {}
2120METRICS_STATE_LOCK = Lock ()
2221
@@ -442,9 +441,6 @@ def init_logger(
442441 metric_grouping_interval = None
443442 ):
444443
445- if metric_grouping_interval is None and not level == 'debug' :
446- metric_grouping_interval = METRIC_GROUPING_INTERVAL
447-
448444 global LOG
449445 if LOG is not None :
450446 return LOG
You can’t perform that action at this time.
0 commit comments