From 0e0be9bfe1a9c1627caa6422202b76008701740c Mon Sep 17 00:00:00 2001 From: Cameron Dale Date: Tue, 29 Apr 2008 10:16:50 -0700 Subject: [PATCH] Don't log KRPC errors for receiving an invalid store_value token. --- apt_p2p_Khashmir/krpc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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]]) -- 2.39.5