

def _wrap_handling(kwargs):
    ' Starts running a queue handler and creates a log file for the queue.'
    _configure_logging(kwargs, extract=False)
    handler = kwargs['handler']
    graceful_exit = kwargs['graceful_exit']
    if graceful_exit:
        sigint_handling.start()
    handler.run()

dataset/ETHPy150Open SmokinCaterpillar/pypet/pypet/environment.py _wrap_handling/original