Fix log level checks.