From 3a9bde61a496d11bede1b052196359c0a6997808 Mon Sep 17 00:00:00 2001 From: bonedaddy Date: Tue, 23 Mar 2021 17:08:27 -0700 Subject: [PATCH] log absolute change, and break percentage when circuit is tripped --- eventwatcher/handle_log_swaps.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eventwatcher/handle_log_swaps.go b/eventwatcher/handle_log_swaps.go index 2ff1635..16a0d59 100644 --- a/eventwatcher/handle_log_swaps.go +++ b/eventwatcher/handle_log_swaps.go @@ -108,6 +108,8 @@ func (wc *WatchedContract) handleLogSwaps( wc.logger.Warn( "price fluctuation outside of acceptable bounds, breaking!", + zap.Float64("change.abs", math.Abs(change)), + zap.Float64("break.percentage", breakPercentage), ) // lock the authorizer since bind.TransactOpts is not threadsafe