Better error logging for store_value token errors.
authorCameron Dale <camrdale@gmail.com>
Fri, 9 May 2008 02:34:31 +0000 (19:34 -0700)
committerCameron Dale <camrdale@gmail.com>
Fri, 9 May 2008 02:34:31 +0000 (19:34 -0700)
apt_p2p_Khashmir/krpc.py

index b151a55..7560470 100644 (file)
@@ -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]])