Fixed log level check