From d8821c2778b745e15b1e9c4912a7f36a9a65d072 Mon Sep 17 00:00:00 2001 From: Sylvain Bellemare Date: Thu, 12 Jul 2018 20:18:53 +0100 Subject: [PATCH] Change some debug logging to info --- honeybadgerbft/core/binaryagreement.py | 8 ++++---- test/byzantine.py | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/honeybadgerbft/core/binaryagreement.py b/honeybadgerbft/core/binaryagreement.py index f38370ea..c160f956 100644 --- a/honeybadgerbft/core/binaryagreement.py +++ b/honeybadgerbft/core/binaryagreement.py @@ -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 @@ -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( diff --git a/test/byzantine.py b/test/byzantine.py index 4fcde31d..eaa9a095 100644 --- a/test/byzantine.py +++ b/test/byzantine.py @@ -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]: @@ -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}, ) @@ -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