make pycharm happy about long lines

This commit is contained in:
Alex Grintsvayg 2020-01-20 14:18:00 -05:00
parent 474c0f980e
commit f94135cadd
No known key found for this signature in database
GPG key ID: AEB3F089F86A22B5

View file

@ -475,9 +475,9 @@ class Daemon(metaclass=JSONRPCServerType):
if self.conf.prometheus_port:
try:
metrics_site = web.TCPSite(self.metrics_runner, "0.0.0.0", self.conf.prometheus_port, shutdown_timeout=.5)
await metrics_site.start()
log.info('metrics server listening on TCP %s:%i', *metrics_site._server.sockets[0].getsockname()[:2])
metrics = web.TCPSite(self.metrics_runner, "0.0.0.0", self.conf.prometheus_port, shutdown_timeout=.5)
await metrics.start()
log.info('metrics server listening on TCP %s:%i', *metrics._server.sockets[0].getsockname()[:2])
except OSError as e:
log.error('metrics server failed to bind TCP :%i', self.conf.prometheus_port)
await self.analytics_manager.send_server_startup_error(str(e))