debug log level toggle now remembers previous level