correctly setting log level