def release_getLogger(name):
    '''
    passing original handler with debug() method replaced to empty function
    '''

    def dummy(*k, **kw):
        pass

    global __orig_getLogger
    log = __orig_getLogger(name)
    setattr(log, 'debug', dummy)
    return log

    passing original handler with debug() method replaced to empty function
    
recipes/Python/496870_How_disabl_debug_logging_release/recipe-496870.py