def wrapper(*args, **kwargs): baseMatcher = args[0] input = args[1] logging.debug(' --------------- %s: started --------------- ' % baseMatcher.lookingEntityName) logging.debug('Original input: %s' % input) retval = func(*args, **kwargs) logging.debug('--------------- ----------------------------------- --------------- ') length = len(retval[0]) if not length: logging.debug('No %s found' % baseMatcher.lookingEntityName) else: logging.debug('Found %s %s: %s' % (length, baseMatcher.lookingEntityName, collection_str(retval[0]))) logging.debug('Updated input: %s' % retval[1]) logging.debug(' --------------- %s: ended --------------- ' % baseMatcher.lookingEntityName) return retval
def wrapper(*args, **kwargs): baseMatcher = args[0] match = args[1] logging.debug('%s:pattern: %s pretender: %s' % (baseMatcher.lookingEntityName, match.re.pattern, collection_str(match.groups()))) #logging.debug('Found pretender to %s: %s' % (baseMatcher.lookingEntityName, collection_str(match.groups()))) return func(*args, **kwargs)