the following messages get logged quite a lot while
this is not a very useful information in a normal situation:
```
2024-01-12 09:09:40,604 - reporter - INFO - data ready to be sent to the mgr.
2024-01-12 09:09:40,604 - reporter - INFO - no diff, not sending data to the mgr.
2024-01-12 09:10:15,022 - reporter - INFO - data ready to be sent to the mgr.
2024-01-12 09:10:15,022 - reporter - INFO - no diff, not sending data to the mgr.
...
```
This commit changes the log level to DEBUG.
Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit
b4091600f696fa8c3577876e071af3d53024f56f)
self.system.lock.acquire()
self.log.logger.debug('lock acquired in reporter loop.')
if self.system.data_ready:
- self.log.logger.info('data ready to be sent to the mgr.')
+ self.log.logger.debug('data ready to be sent to the mgr.')
if not self.system.get_system() == self.system.previous_data:
self.log.logger.info('data has changed since last iteration.')
self.data['patch'] = self.system.get_system()
else:
self.system.previous_data = self.system.get_system()
else:
- self.log.logger.info('no diff, not sending data to the mgr.')
+ self.log.logger.debug('no diff, not sending data to the mgr.')
self.system.lock.release()
self.log.logger.debug('lock released in reporter loop.')
time.sleep(5)