]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cephadm/node-proxy: logging issues / error handling refactor
authorGuillaume Abrioux <gabrioux@ibm.com>
Fri, 6 Oct 2023 13:55:21 +0000 (13:55 +0000)
committerGuillaume Abrioux <gabrioux@ibm.com>
Thu, 25 Jan 2024 15:07:14 +0000 (15:07 +0000)
commitd43452d57f4342a8d0bf0b38e138e92945ba4eb6
tree74411d91c3c33e0a43a77de3905217fdd8e7dcf0
parenta48c34ef0034de335c1ec5d599272fc9d958a506
cephadm/node-proxy: logging issues / error handling refactor

- fix multiple logging issue because of new handler
  added each time `Logger` is called
- do not propagate to parent (root) logger: as it makes it log the messages too
- implement a new method `is_logged()` in `RedFishClient`
- refactor the logic regarding caught errors in `RedFishClient`

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
src/cephadm/cephadmlib/node_proxy/baseclient.py
src/cephadm/cephadmlib/node_proxy/baseredfishsystem.py
src/cephadm/cephadmlib/node_proxy/redfish_client.py
src/cephadm/cephadmlib/node_proxy/server.py
src/cephadm/cephadmlib/node_proxy/util.py