From: Cameron Dale Date: Tue, 29 Apr 2008 17:16:50 +0000 (-0700) Subject: Don't log KRPC errors for receiving an invalid store_value token. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0e0be9bfe1a9c1627caa6422202b76008701740c;p=quix0rs-apt-p2p.git Don't log KRPC errors for receiving an invalid store_value token. --- diff --git a/apt_p2p_Khashmir/krpc.py b/apt_p2p_Khashmir/krpc.py index d4c0583..a2afac7 100644 --- a/apt_p2p_Khashmir/krpc.py +++ b/apt_p2p_Khashmir/krpc.py @@ -366,7 +366,8 @@ class KRPC: ret = f(*(), **msg[ARG]) except KrpcError, e: log.msg('Got a Krpc error while running: krpc_%s' % msg[REQ]) - log.err(e) + if e[0] != KRPC_ERROR_INVALID_TOKEN: + log.err(e) self.stats.errorAction(msg[REQ]) olen = self._sendResponse(msg[REQ], addr, msg[TID], ERR, [e[0], e[1]])