From a1fe8f25196c8ea18271cbd709b514358f8818b0 Mon Sep 17 00:00:00 2001 From: Ade Date: Mon, 31 Mar 2014 19:23:08 +1300 Subject: [PATCH] nzbget - log as info instead of error --- headphones/nzbget.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/headphones/nzbget.py b/headphones/nzbget.py index 710ee549..d3abba57 100644 --- a/headphones/nzbget.py +++ b/headphones/nzbget.py @@ -46,9 +46,9 @@ def sendNZB(nzb): nzbGetRPC = xmlrpclib.ServerProxy(url) try: if nzbGetRPC.writelog("INFO", "headphones connected to drop of %s any moment now." % (nzb.name + ".nzb")): - logger.debug(u"Successful connected to NZBget") + logger.debug(u"Successfully connected to NZBget") else: - logger.error(u"Successful connected to NZBget, but unable to send a message" % (nzb.name + ".nzb")) + logger.info(u"Successfully connected to NZBget, but unable to send a message" % (nzb.name + ".nzb")) except httplib.socket.error: logger.error(u"Please check your NZBget host and port (if it is running). NZBget is not responding to this combination") @@ -74,7 +74,7 @@ def sendNZB(nzb): nzbcontent64 = standard_b64encode(data) - logger.error(u"Sending NZB to NZBget") + logger.info(u"Sending NZB to NZBget") logger.debug(u"URL: " + url) if nzbGetRPC.append(nzb.name + ".nzb", headphones.NZBGET_CATEGORY, addToTop, nzbcontent64):