micro-nova / AmpliPi

Whole House Audio System 🔊
https://amplipi.com
GNU General Public License v3.0
289 stars 23 forks source link

System log persistence during important events #741

Open rtertiaer opened 5 months ago

rtertiaer commented 5 months ago

We do not save the system log right now, largely to save on disk io. We should have a mechanism to save the system log during important events though - when a user requests support, during system upgrades, etc.

rtertiaer commented 3 months ago

Steve had an excellent idea - we can simply make this a user-toggleable boolean in the config page, which is way easier than bifurcating logs when we detect something is amiss, or automating this at all. I'm really into this idea and he's going to work on it.

rtertiaer commented 3 months ago

It would also be excellent to select the actual log level, or at least turn on debug logging.

SteveMicroNova commented 3 months ago

It would also be excellent to select the actual log level, or at least turn on debug logging.

Is this a request to add a separate setting for the log level on the frontend, to set the default log level to debug, or to ensure that the log level is debug when the boolean is true?

rtertiaer commented 3 months ago

This is a request to either add:

I had to swap the log level in lms_metadata.py to something less verbose than DEBUG already because it was absolutely inundating and wiping out the system log - but it would be nice to be able to turn that back on when necessary.