less verbose logging

This commit is contained in:
Jack Robison 2018-11-12 14:47:11 -05:00
parent 5b419b55c5
commit 2fba1f417f
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2
2 changed files with 2 additions and 2 deletions

View file

@ -432,7 +432,7 @@ class KademliaProtocol(protocol.DatagramProtocol):
else: else:
result = func() result = func()
except Exception as e: 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) df.errback(e)
else: else:
df.callback(result) df.callback(result)

View file

@ -712,7 +712,7 @@ class UPnPComponent(Component):
if self.upnp: if self.upnp:
try: try:
external_ip = yield from_future(self.upnp.get_external_ip()) 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) log.info("got external ip from UPnP: %s", external_ip)
except (asyncio.TimeoutError, UPnPError): except (asyncio.TimeoutError, UPnPError):
pass pass