Fixed log level NameError.