PepperDashCore icon indicating copy to clipboard operation
PepperDashCore copied to clipboard

[FEATURE]-Add timer to debug console operations to automatically disable debug after expiry

Open ndorin opened this issue 4 years ago • 1 comments

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.

ndorin avatar Aug 20 '21 19:08 ndorin

@jtalborough Moved this issue to the PepperDashCore library where the affected code resides

ndorin avatar Aug 20 '21 19:08 ndorin