def log_subprocess(func):
 @wraps(func)
 def wrapper(*params, **kwargs):
  fc = ('%s(%s)' % (func.__name__, ', '.join(([a.__repr__() for a in params] + [('%s = %s' % (a, b)) for (a, b) in kwargs.items()]))))
  log.debug(('%s called' % fc))
  return func(*params, **kwargs)
 return wrapper

def log_subprocess ( func ) : @ wraps ( func ) def wrapper ( * params , ** kwargs ) : fc = ( '%s(%s)' % ( func . __name__ , ', ' . join ( ( [ a . __repr__ ( ) for a in params ] + [ ( '%s = %s' % ( a , b ) ) for ( a , b ) in kwargs . items ( ) ] ) ) ) ) log . debug ( ( '%s called' % fc ) ) return func ( * params , ** kwargs ) return wrapper
wrapper around subprocess to log .