From 2fba1f417f30e2979a77ddd1b83071434a5e8b93 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Mon, 12 Nov 2018 14:47:11 -0500 Subject: [PATCH] less verbose logging --- lbrynet/dht/protocol.py | 2 +- lbrynet/extras/daemon/Components.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lbrynet/dht/protocol.py b/lbrynet/dht/protocol.py index 6504baea3..0a00b01f1 100644 --- a/lbrynet/dht/protocol.py +++ b/lbrynet/dht/protocol.py @@ -432,7 +432,7 @@ class KademliaProtocol(protocol.DatagramProtocol): else: result = func() except Exception as e: - log.exception("error handling request for %s:%i %s", senderContact.address, senderContact.port, method) + log.error("error handling request for %s:%i %s", senderContact.address, senderContact.port, method) df.errback(e) else: df.callback(result) diff --git a/lbrynet/extras/daemon/Components.py b/lbrynet/extras/daemon/Components.py index 9751adb78..b184b8cc3 100644 --- a/lbrynet/extras/daemon/Components.py +++ b/lbrynet/extras/daemon/Components.py @@ -712,7 +712,7 @@ class UPnPComponent(Component): if self.upnp: try: external_ip = yield from_future(self.upnp.get_external_ip()) - if external_ip != "0.0.0.0": + if external_ip != "0.0.0.0" and not self.external_ip: log.info("got external ip from UPnP: %s", external_ip) except (asyncio.TimeoutError, UPnPError): pass