properly set log level