cosmos-db-migration-utility/src/configure/main.py [10:25]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
logger = get_logger(__name__)

def exit_handler(signal_received, frame):
    # Handle any cleanup here
    print('SIGINT or CTRL-C detected. Exiting gracefully')
    exit(0)

def check_environment_variables(variables):
    for variable in variables:
        if variable not in os.environ:
            logger.fatal("Environment variable %s is required but not set.", variable)
            logger.error("The following environment variables are required: %s", json.dumps(variables, indent=2))
            exit(1)

# Tell Python to run the handler() function when SIGINT is recieved
signal(SIGINT, exit_handler)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



cosmos-db-migration-utility/src/migrator-app/main.py [15:30]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
logger = get_logger(__name__)

def exit_handler(signal_received, frame):
    # Handle any cleanup here
    print('SIGINT or CTRL-C detected. Exiting gracefully')
    exit(0)

def check_environment_variables(variables):
    for variable in variables:
        if variable not in os.environ:
            logger.fatal("Environment variable %s is required but not set.", variable)
            logger.error("The following environment variables are required: %s", json.dumps(variables, indent=2))
            exit(1)

# Tell Python to run the handler() function when SIGINT is recieved
signal(SIGINT, exit_handler)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



