improved logging

Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
Csaba Kiraly 2023-01-25 21:38:21 +01:00
parent c97dd58d76
commit ad11214e2d
No known key found for this signature in database
GPG Key ID: 0FE274EE8C95166E

View File

@ -10,7 +10,7 @@ from bitarray.util import zeros
class Neighbor:
def __repr__(self):
return str(self.node.ID)
return "%d:%d/%d" % (self.node.ID, self.sent.count(1), self.received.count(1))
def __init__(self, v, blockSize):
self.node = v
@ -25,6 +25,9 @@ class Validator:
format = {}
logger = []
def __repr__(self):
return str(self.ID)
def __init__(self, ID, amIproposer, logger, shape, rows, columns):
self.shape = shape
FORMAT = "%(levelname)s : %(entity)s : %(message)s"