Skip to content

Commit

Permalink
Change some debug logging to info
Browse files Browse the repository at this point in the history
  • Loading branch information
sbellem committed Aug 2, 2018
1 parent 5886083 commit d8821c2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions honeybadgerbft/core/binaryagreement.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ def _recv():
r = 0
already_decided = None
while True: # Unbounded number of rounds
logger.debug(f'Starting with est = {est}',
extra={'nodeid': pid, 'epoch': r})
logger.info(f'Starting with est = {est}',
extra={'nodeid': pid, 'epoch': r})

if not est_sent[r][est]:
est_sent[r][est] = True
Expand Down Expand Up @@ -224,8 +224,8 @@ def _recv():
)
# Block until receiving the common coin value
s = coin(r)
logger.debug(f'Received coin with value = {s}',
extra={'nodeid': pid, 'epoch': r})
logger.info(f'Received coin with value = {s}',
extra={'nodeid': pid, 'epoch': r})

try:
est, already_decided = set_new_estimate(
Expand Down
6 changes: 3 additions & 3 deletions test/byzantine.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def _recv():
r = 0
already_decided = None
while True: # Unbounded number of rounds
logger.debug(f'starting round {r} with est set to {est}',
logger.info(f'starting round {r} with est set to {est}',
extra={'nodeid': pid, 'epoch': r})
not_est = int(not bool(est))
if not est_sent[r][est]:
Expand Down Expand Up @@ -172,7 +172,7 @@ def _recv():
extra={'nodeid': pid, 'epoch': r})
broadcast(('CONF', r, (0, 1)))

logger.debug(
logger.info(
f'Block until receiving the common coin value',
extra={'nodeid': pid, 'epoch': r},
)
Expand All @@ -188,7 +188,7 @@ def _recv():
logger.debug(f"broadcast {('AUX', r, not_s)} to node 2",
extra={'nodeid': pid, 'epoch': r})
broadcast(('AUX', r, not_s), receiver=2)
logger.debug(f'exiting round {r}, setting est = s ({s})',
logger.info(f'exiting round {r}, setting est = s ({s})',
extra={'nodeid': pid, 'epoch': r})
est = s
r += 1
Expand Down

0 comments on commit d8821c2

Please sign in to comment.