close debug, open loglevel