Closed dlindnegm closed 11 months ago
Logging can absolutely be reduced. If the default log level for HA is set to info
, then you'll see these informational logs show up. To reduce the logging, either change the default log level in HA or add an entry for custom_components.awnet_local
and set it to warning
or error
. Please see the HA Logger documentation for details: https://www.home-assistant.io/integrations/logger/.
Thank you! I've been using logger entries for some time to de-clutter the default Settings - System - Core log, and didn't realize that also covered the home-assistant.log file. Thanks for the quick response & Happy Holidays!
Very welcome! Fun fact (that I just learned, too): they are the same log file. What we see in the UI is a read of that file. Thanks and Happy Holidays to you as well!
Integration Version: v1.2.0
Home Assistant Version: HASSOS Core 2023.12.3 Supervisor 2023.12.0 Operating System 11.2 Frontend 20231208.2
Describe the bug Log entries from the Ambient Weather Station - Local integration are added to the home-assistant.log at a rate of about every 30 seconds, causing the log file to grow excessively.
To Reproduce Steps to reproduce the behavior:
Expected behavior Not sure if the logging is necessary, but it seems excessive - as if I had enabled debug logging (Debug logging is not enabled). I'm wondering if there's a way to reduce the amount of logging to that file.
Additional context My backup home-assistant.log (home-assistant.log.1) is over 50 MB in size, and most of that is due to logs from the awnet_local integration. That log file covers a period of 6 days and has 12,423 entries just for awnet_local (about 2,070/day). After a reboot the new home-assistant.log has 342 entries for awnet_local over a 3 hour period.
Debug log output from the integration (see Home Assistant docs for how to enable debug logging for an integration; integration name: "custom_components.awnet_local") home-assistant_awnet_local_2023-12-24T20-50-02.854Z.log
The last 3 minutes of the attached log file had debug enabled. The log section below is what is repeated every 30 seconds without debug enabled.