From 3c3db5d991b38af8e1f119a205bad6433d7d5081 Mon Sep 17 00:00:00 2001 From: Tetrergeru Date: Thu, 12 Oct 2023 10:35:21 +0200 Subject: [PATCH] fix(checker): Revert panic logging --- checker/worker/handler.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/checker/worker/handler.go b/checker/worker/handler.go index dddb81c6d..24ef5c947 100644 --- a/checker/worker/handler.go +++ b/checker/worker/handler.go @@ -34,7 +34,8 @@ func (check *Checker) startTriggerHandler(triggerIDsToCheck <-chan string, metri } } -func (check *Checker) handleTrigger(triggerID string, metrics *metrics.CheckMetrics) (err error) { +func (check *Checker) handleTrigger(triggerID string, metrics *metrics.CheckMetrics) error { + var err error defer func() { if r := recover(); r != nil { err = fmt.Errorf("panic: '%s' stack: %s", r, debug.Stack())