MOON
Server: Apache
System: Linux server2.shieldcogroup.com 3.10.0-1160.119.1.el7.tuxcare.els12.x86_64 #1 SMP Fri Nov 8 05:49:38 UTC 2024 x86_64
User: jacom (1029)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python2.7/site-packages/leapp/libraries/stdlib/config.py
"""
Functions that allow gather information about the current configuration.
"""
import os


def is_debug():
    """
    Returns True if the LEAPP_DEBUG environment variable is set to '1'.
    """
    return os.getenv('LEAPP_DEBUG', '0') == '1'


def is_verbose():
    """
    Returns True if either the LEAPP_DEBUG or the LEAPP_VERBOSE environment variable is set to '1'.
    """
    return os.getenv('LEAPP_DEBUG', '0') == '1' or os.getenv('LEAPP_VERBOSE', '0') == '1'