mirror of
https://github.com/logos-storage/das-research.git
synced 2026-01-03 21:53:07 +00:00
improved logging
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
parent
c97dd58d76
commit
ad11214e2d
@ -10,7 +10,7 @@ from bitarray.util import zeros
|
|||||||
class Neighbor:
|
class Neighbor:
|
||||||
|
|
||||||
def __repr__(self):
|
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):
|
def __init__(self, v, blockSize):
|
||||||
self.node = v
|
self.node = v
|
||||||
@ -25,6 +25,9 @@ class Validator:
|
|||||||
format = {}
|
format = {}
|
||||||
logger = []
|
logger = []
|
||||||
|
|
||||||
|
def __repr__(self):
|
||||||
|
return str(self.ID)
|
||||||
|
|
||||||
def __init__(self, ID, amIproposer, logger, shape, rows, columns):
|
def __init__(self, ID, amIproposer, logger, shape, rows, columns):
|
||||||
self.shape = shape
|
self.shape = shape
|
||||||
FORMAT = "%(levelname)s : %(entity)s : %(message)s"
|
FORMAT = "%(levelname)s : %(entity)s : %(message)s"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user