Python: Logging from classes?
I realized I don't see log messages from classes of the satellite, e.g. starting `DemoSatellite --group etc --name one --log-level DEBUG` will produce all logs on debug from the satellite class, but e.g. nothing from `HeartbeatChecker`. Only when I manuall change their log level: ```diff diff --git a/python/constellation/core/heartbeatchecker.py b/python/constellation/core/heartbeatchecker.py index 3513f98a..f542889e 100644 --- a/python/constellation/core/heartbeatchecker.py +++ b/python/constellation/core/heartbeatchecker.py @@ -91,7 +91,7 @@ class HeartbeatChecker: self._states[socket] = HeartbeatState( name, evt, self.HB_INIT_LIVES, self.HB_INIT_PERIOD ) - logger.info(f"Registered heartbeating check for {address}") + logger.error(f"Registered heartbeating check for {address}") return evt def unregister(self, name: str) -> None: ``` will I see that message but without any decoration: ``` 2024-09-11 19:55:05 zeus one[294021] INFO Satellite Satellite.one, version 0.0.0 ready to launch! Registered heartbeating check for tcp://192.168.2.68:40263 ```
issue

Imprint | Privacy | Conditions of Use