Be stricter in checking the logging level