diff --git a/devices/common/lofar_logging.py b/devices/common/lofar_logging.py index e571ebb1f92c87f7963a2c8c8f623ed79346f068..4114d5dd342c4562313a1dd609db3522f0b5fe63 100644 --- a/devices/common/lofar_logging.py +++ b/devices/common/lofar_logging.py @@ -114,6 +114,9 @@ def configure_logger(logger: logging.Logger=None, log_extra=None, debug=False): # remove spam from the OPC-UA client connection logging.getLogger("opcua").setLevel(logging.WARN) + # don't spam errors for git, as we use it in our log handler, which would result in an infinite loop + logging.getLogger("git").setLevel(logging.ERROR) + # for now, also log to stderr # Set up logging in a way that it can be understood by a human reader, be # easily grep'ed, be parsed with a couple of shell commands and