After an apt update, I am suddenly seeing additional lines being written to my log, that are not part of my application.
For example, these lines ARE from my application
but they are directly followed by these lines that are NOT from my application
First off, if they are being auto generated, they should be a DEBUG or higher, not an INFO. But secondly, how do I suppress this from my logs?
I already have the following lines to set logging parameters, unfortunately because these lines are incorrectly being sent as INFO's they are not filtered out.
For example, these lines ARE from my application
Code:
2024-01-30 08:15:40: INFO: Average brightness of 15 recent images: 70.626869341563792024-01-30 08:15:40: INFO: Removing files created during initial analysis... 2024-01-30 08:15:40: INFO: Setting shutter speed to "auto" based on analysis of last image set... 2024-01-30 08:15:44: INFO: Capturing /home/pi/dcim/20240130/00002532.jpg ...
Code:
2024-01-30 08:15:44: INFO: Camera stopped2024-01-30 08:15:44: INFO: Configuration successful!2024-01-30 08:15:44: INFO: Camera started2024-01-30 08:15:44: INFO: Camera stopped2024-01-30 08:15:44: INFO: Configuration successful!2024-01-30 08:15:44: INFO: Camera started2024-01-30 08:15:44: INFO: Saved <picamera2.request.Helpers object at 0x7f72d66e10> to file /home/pi/dcim/20240130/00002532.jpg.2024-01-30 08:15:44: INFO: Time taken for encode: 78.95803399998158 ms.
First off, if they are being auto generated, they should be a DEBUG or higher, not an INFO. But secondly, how do I suppress this from my logs?
I already have the following lines to set logging parameters, unfortunately because these lines are incorrectly being sent as INFO's they are not filtered out.
Code:
os.environ["LIBCAMERA_LOG_LEVELS"] = "3"logging.basicConfig(filename=logPath, level=logging.INFO, format='%(asctime)s: %(levelname)s: %(message)s', datefmt='%Y-%m-%d %H:%M:%S')logging.getLogger('googleapiclient.discovery_cache').setLevel(logging.ERROR)
Statistics: Posted by eat-sleep-code — Tue Jan 30, 2024 6:20 pm