2021-07-27
Less logging in zigbee2mqtt to save the MicroSD in the Raspberry Pi
The recent MicroSD failure in the Raspberry Pi made me look at the logging in zigbee2mqtt as it is running for a long time and default logging includes every received message which would give a lot of wear on the MicroSD in the Raspberry Pi. So I changed the configuration to only log to console. This is something that can't be changed via an mqtt message, which is logical (otherwise it would have security implications). I may also look at less system logging to the MicroSD. Someone suggested to have a look at log2ram for this. This creates a ramdisk for logging which is synchronized to persistent storage every day or on shutdown.