fix parsing of log level numbers