def _wrap_handling(kwargs):
    _configure_logging(kwargs, extract=False)
    # Main job, make the listener to the queue start receiving message for writing to disk.
    handler=kwargs['handler']
    graceful_exit = kwargs['graceful_exit']
    # import cProfile as profile
    # profiler = profile.Profile()
    # profiler.enable()
    if graceful_exit:
        sigint_handling.start()
    handler.run()
    # profiler.disable()
    # profiler.dump_stats('./queue.profile2')
Starts running a queue handler and creates a log file for the queue.
dataset/ETHPy150Open SmokinCaterpillar/pypet/pypet/environment.py/_wrap_handling