def obtain_verbosity() -> int:
    'Returns a verbosity level according to the set log level.'
    log_level = os.environ.get(ENV_LOG_LEVEL, DEFAULT_LOG_LEVEL)
    verbosity = 0
    if (log_level == 'DEBUG'):
        verbosity = 2
    if (log_level == 'INFO'):
        verbosity = 1
    return verbosity
Returns a verbosity level according to the set log level.
def obtain_verbosity() -> int:
    
    log_level = os.environ.get(ENV_LOG_LEVEL, DEFAULT_LOG_LEVEL)
    verbosity = 0
    if (log_level == 'DEBUG'):
        verbosity = 2
    if (log_level == 'INFO'):
        verbosity = 1
    return verbosity