testing/unexpected_passes_common/argument_parsing.py
def SetLoggingVerbosity(args):
  """Sets logging verbosity based on parsed arguments.

  Args:
    args: Parsed arguments from an argparse.ArgumentParser.
  """
  if args.quiet:
    args.verbose = -1
  verbosity_level = args.verbose
  if verbosity_level == -1:
    level = logging.ERROR
  elif verbosity_level == 0:
    level = logging.WARNING
  elif verbosity_level == 1:
    level = logging.INFO
  else:
    level = logging.DEBUG
  logging.getLogger().setLevel(level)
Sets logging verbosity based on parsed arguments.

  Args:
    args: Parsed arguments from an argparse.ArgumentParser.
  
Sets logging verbosity based on parsed arguments.
Sets logging verbosity based on parsed arguments .
def SetLoggingVerbosity(args):
  if args.quiet:
    args.verbose = -1
  verbosity_level = args.verbose
  if verbosity_level == -1:
    level = logging.ERROR
  elif verbosity_level == 0:
    level = logging.WARNING
  elif verbosity_level == 1:
    level = logging.INFO
  else:
    level = logging.DEBUG
  logging.getLogger().setLevel(level)
def SetLoggingVerbosity ( args ) : if args . quiet : args . verbose = - 1 verbosity_level = args . verbose if verbosity_level == - 1 : level = logging . ERROR elif verbosity_level == 0 : level = logging . WARNING elif verbosity_level == 1 : level = logging . INFO else : level = logging . DEBUG logging . getLogger ( ) . setLevel ( level )
Sets logging verbosity based on parsed arguments.
Sets logging verbosity based on parsed arguments .
"""Sets logging verbosity based on parsed arguments.

  Args:
    args: Parsed arguments from an argparse.ArgumentParser.
  """
args
Parsed arguments from an argparse.ArgumentParser.
Parsed arguments from an argparse . ArgumentParser .