Restore the debug level status when starting.