From: Cameron Dale Date: Fri, 9 May 2008 02:34:31 +0000 (-0700) Subject: Better error logging for store_value token errors. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f49a1318a35aff0cabfafa96f45710632cba986a;p=quix0rs-apt-p2p.git Better error logging for store_value token errors. --- diff --git a/apt_p2p_Khashmir/krpc.py b/apt_p2p_Khashmir/krpc.py index b151a55..7560470 100644 --- a/apt_p2p_Khashmir/krpc.py +++ b/apt_p2p_Khashmir/krpc.py @@ -379,6 +379,8 @@ class KRPC: log.msg('Got a Krpc error while running: krpc_%s' % msg[REQ]) if e[0] != KRPC_ERROR_INVALID_TOKEN: log.err(e) + else: + log.msg('Node sent us an invalid token, not storing') self.stats.errorAction(msg[REQ]) olen = self._sendResponse(msg[REQ], addr, msg[TID], ERR, [e[0], e[1]])