From f6128af6a97a1f17eb3b81bfb9894b1b0202b16d Mon Sep 17 00:00:00 2001 From: Felix Henneke Date: Mon, 9 Oct 2023 10:54:58 +0200 Subject: [PATCH] Mute most alerts (#74) This PR mutes most alerts currently raised in the repo: - All alerts from the quote test are removed. - All alerts form the reference solver test are removed. --- src/monitoring_tests/partially_fillable_fee_quote_test.py | 2 +- src/monitoring_tests/reference_solver_surplus_test.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/monitoring_tests/partially_fillable_fee_quote_test.py b/src/monitoring_tests/partially_fillable_fee_quote_test.py index 86e1dc5..37ed533 100644 --- a/src/monitoring_tests/partially_fillable_fee_quote_test.py +++ b/src/monitoring_tests/partially_fillable_fee_quote_test.py @@ -93,7 +93,7 @@ def run_quote_test(self, trade: Trade, transaction: TxData) -> bool: ] if abs(diff_fee_rel) > FEE_RELATIVE_DEVIATION_FLAG: - self.alert("\t".join(log_output)) + self.logger.info("\t".join(log_output)) elif abs(diff_fee_rel) > FEE_RELATIVE_DEVIATION_FLAG / 10: self.logger.info("\t".join(log_output)) else: diff --git a/src/monitoring_tests/reference_solver_surplus_test.py b/src/monitoring_tests/reference_solver_surplus_test.py index ff7ae0c..c28cd60 100644 --- a/src/monitoring_tests/reference_solver_surplus_test.py +++ b/src/monitoring_tests/reference_solver_surplus_test.py @@ -94,7 +94,7 @@ def compare_orders_surplus( a_abs_eth > SURPLUS_ABSOLUTE_DEVIATION_ETH and a_rel > SURPLUS_REL_DEVIATION ): - self.alert(log_output) + self.logger.info(log_output) self.logger.info(ref_solver_log) elif ( a_abs_eth > SURPLUS_ABSOLUTE_DEVIATION_ETH / 10