Fixed loglevel bug