set log level correctly