From 9d0767f3e8f8f565f18672bc6528983cbb744d84 Mon Sep 17 00:00:00 2001 From: Huseyin ABANOZ Date: Mon, 27 May 2019 08:03:43 +0300 Subject: [PATCH] minor diff 5->6 mutez. tzscan errors do not print stack trace. version 5.1 --- src/calc/phased_payment_calculator.py | 6 +++--- src/pay/payment_producer.py | 6 +++--- src/version.py | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/calc/phased_payment_calculator.py b/src/calc/phased_payment_calculator.py index c18851db..2cb6fe65 100644 --- a/src/calc/phased_payment_calculator.py +++ b/src/calc/phased_payment_calculator.py @@ -9,7 +9,7 @@ from model.reward_log import TYPE_FOUNDERS_PARENT, TYPE_OWNERS_PARENT, cmp_by_type_balance from pay.payment_consumer import logger -MINOR_DIFF = 5 +MINOR_DIFF = 6 MINOR_RATIO_DIFF = 1e-6 @@ -95,8 +95,8 @@ def calculate(self, reward_provider_model): logger.info("Total rewards after processing is {:,} mutez.".format(total_rwrd_amnt)) if error: - logger.debug("Distributed total amount is {:,} mutez".format(total_amount_to_pay)) - logger.debug("Difference between total rewards and distributed total amount is {} mutez. " + logger.debug("Total amount to pay is {:,} mutez".format(total_amount_to_pay)) + logger.debug("Difference between total rewards and total payment amount is {} mutez. " "This is due to floating point arithmetic. (max allowed diff is {})" .format(error, MINOR_DIFF)) diff --git a/src/pay/payment_producer.py b/src/pay/payment_producer.py index 549f73cf..26e03bae 100644 --- a/src/pay/payment_producer.py +++ b/src/pay/payment_producer.py @@ -231,13 +231,13 @@ def try_to_pay(self, pymnt_cycle): return True except ReadTimeout: - logger.warn("Tzscan call failed", exc_info=True) + logger.warning("Tzscan call failed", exc_info=False) return False except ConnectTimeout: - logger.warn("Tzscan connection failed", exc_info=True) + logger.warning("Tzscan connection failed", exc_info=False) return False except TzScanException: - logger.warn("Tzscan error at reward loop", exc_info=True) + logger.warning("Tzscan error at reward loop", exc_info=False) return False except Exception: logger.error("Error at payment producer loop", exc_info=True) diff --git a/src/version.py b/src/version.py index 5027ecb8..41c81546 100644 --- a/src/version.py +++ b/src/version.py @@ -1 +1 @@ -version=5.0 \ No newline at end of file +version=5.1 \ No newline at end of file