Is your feature request related to a problem? Please describe.
Currently, setting debug level to > 0 never expires and can cause additional processor overhead if left on unintentionally.
Describe the solution you'd like
Add a timer with a default value whenever the appdebug console command sets the level to > 0. Add an optional argument to the command to explicitly set the timeout to a value different than the default.
This might be a bit tricky to implement with the way the current logic saves the level to a file to persist through reboot. Some thought will have to be put in to consider how to deal with that when the program reboots and restores the previous level.
Is your feature request related to a problem? Please describe.
Currently, setting debug level to > 0 never expires and can cause additional processor overhead if left on unintentionally.
Describe the solution you'd like
Add a timer with a default value whenever the
appdebugconsole command sets the level to > 0. Add an optional argument to the command to explicitly set the timeout to a value different than the default.This might be a bit tricky to implement with the way the current logic saves the level to a file to persist through reboot. Some thought will have to be put in to consider how to deal with that when the program reboots and restores the previous level.