

def log_stats(self):
    roundtrip_stats = 'window (mean rtt={mean:.1f} ms; stddev rtt={stddev:.1f})'.format(**self.heartbeat_samples.stats)
    roundtrip_total_stats = 'total (mean rtt={mean:.1f} ms; stddev rtt={stddev:.1f})'.format(**self.heartbeat_samples.total.stats)
    logger.debug(('pid=%s; endpoint=%s; %s; %s; phi=%.3f; ping/s=%.2f; status=%s' % (self.pid, self.endpoint, roundtrip_stats, roundtrip_total_stats, self.phi, (self.explicit_heartbeat_count / max(1, (time.monotonic() - self.created_at))), self.status)))

dataset/ETHPy150Open deliveryhero/lymph/lymph/core/connection.py Connection.log_stats/original