From 59dba6a7c7864a35ed19f6602c145945030315dd Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Mon, 29 Aug 2016 12:13:08 +0800 Subject: [PATCH] Namecoin error logging changes - namecoin connection errors have now severity "info" instead of "error", because it just confuses peopel who don't have namecoin configured - partially addresses #893 --- src/namecoin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/namecoin.py b/src/namecoin.py index ed98b4e3..87436c30 100644 --- a/src/namecoin.py +++ b/src/namecoin.py @@ -158,7 +158,7 @@ class namecoinConnection (object): assert False except Exception: - logger.exception("Namecoin connection test failure") + logger.info("Namecoin connection test failure") return ('failed', "The connection to namecoin failed.") # Helper routine that actually performs an JSON RPC call. @@ -208,9 +208,9 @@ class namecoinConnection (object): if resp.status != 200: raise Exception ("Namecoin returned status %i: %s", resp.status, resp.reason) except: - logger.error("HTTP receive error") + logger.info("HTTP receive error") except: - logger.error("HTTP connection error", exc_info=True) + logger.info("HTTP connection error") return result