Supress statsd library debug log messages in sensor container when DEBUG
mode / log level is not enabled.
@@ -200,6 +200,10 @@ class SensorWrapper(object):
if '--debug' in parent_args:
set_log_level_for_all_loggers()
+ else:
+ # NOTE: statsd logger logs everything by default under INFO so we ignore those log
+ # messages unless verbose / debug mode is used
+ logging.ignore_statsd_log_messages()
self._sensor_instance = self._get_sensor_instance()
