]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
node-proxy: reduce log level in reporter agent
authorGuillaume Abrioux <gabrioux@ibm.com>
Fri, 12 Jan 2024 09:15:02 +0000 (09:15 +0000)
committerGuillaume Abrioux <gabrioux@ibm.com>
Thu, 25 Jan 2024 16:12:11 +0000 (16:12 +0000)
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)

src/ceph-node-proxy/ceph_node_proxy/reporter.py

index ab0fbc1af51519f4f0a344f6f0457ba79995c358..aa16d83421f3e34f24e34061f99bbc216b8f0e3b 100644 (file)
@@ -47,7 +47,7 @@ class Reporter:
             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()
@@ -68,7 +68,7 @@ class Reporter:
                     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)