code: def log_call(self, cmd, callwith=subprocess.check_call,
                   log_level=logging.DEBUG, **kw):
          
          logger.log(log_level, "%s> call %r", self.cwd, cmd)
          ret = callwith(cmd, **kw)
          if callwith == subprocess.check_output:
              ret = console_to_str(ret)
          return ret
docs: Wrap a subprocess call with logging
          :param meth: the calling method to use.