Correct log level behavior to properly handle int values