Debug logs.
Fix bug setting log level.