Skip to content

Commit b2ffefc

Browse files
authored
Merge pull request #371 from Helene/null_values
Move null values messages to the moreinfo level
2 parents b1ed782 + 4f4d185 commit b2ffefc

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

source/collector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def reduce_dps_to_first_not_none(self, reverse_order=False):
103103
{timestmp: self.dps[timestmp]} for timestmp in timestamps if
104104
self.dps[timestmp] is not None), {})
105105
if len(self.dps) == 0:
106-
logger.warning(f'Received null values in all data points for {self.metricname}')
106+
logger.details(MSG['NullValues'].format(self.metricname))
107107

108108

109109
class MetricTimeSeries(object):

source/messages.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
'NoData': 'Empty results received', # Please check the pmcollector is properly configured and running.
5353
'NoSensorConfigData': 'No sensor configuration data parsed',
5454
'NoDataStartNextAttempt': 'No Metadata results received from the pmcollector. Start retry attempt {} in 60s (MAX_ATTEMPTS_COUNT:{})',
55+
'NullValues': 'Received null values in all data points for {}',
5556
'BucketsizeChange': 'Based on requested downsample value: {} the bucketsize will be set: {}',
5657
'BucketsizeToPeriod': 'Bucketsize will be set to sensors period: {}',
5758
'DownsampleAggregation': 'Perform downsample aggregation: {} for metric: {}',

0 commit comments

Comments
 (0)