mirror of
https://github.com/LBRYFoundation/lbry-sdk.git
synced 2025-08-31 17:31:29 +00:00
make pycharm happy about long lines
This commit is contained in:
parent
474c0f980e
commit
f94135cadd
1 changed files with 3 additions and 3 deletions
|
@ -475,9 +475,9 @@ class Daemon(metaclass=JSONRPCServerType):
|
||||||
|
|
||||||
if self.conf.prometheus_port:
|
if self.conf.prometheus_port:
|
||||||
try:
|
try:
|
||||||
metrics_site = web.TCPSite(self.metrics_runner, "0.0.0.0", self.conf.prometheus_port, shutdown_timeout=.5)
|
metrics = web.TCPSite(self.metrics_runner, "0.0.0.0", self.conf.prometheus_port, shutdown_timeout=.5)
|
||||||
await metrics_site.start()
|
await metrics.start()
|
||||||
log.info('metrics server listening on TCP %s:%i', *metrics_site._server.sockets[0].getsockname()[:2])
|
log.info('metrics server listening on TCP %s:%i', *metrics._server.sockets[0].getsockname()[:2])
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
log.error('metrics server failed to bind TCP :%i', self.conf.prometheus_port)
|
log.error('metrics server failed to bind TCP :%i', self.conf.prometheus_port)
|
||||||
await self.analytics_manager.send_server_startup_error(str(e))
|
await self.analytics_manager.send_server_startup_error(str(e))
|
||||||
|
|
Loading…
Add table
Reference in a new issue