common: print stacktrace when recovering from panic

This commit is contained in:
Adam Majer 2024-09-27 17:54:31 +02:00
parent 5de077610c
commit a0b65ea8f4

View File

@ -23,6 +23,7 @@ import (
"fmt"
"log"
"net/url"
"runtime/debug"
"slices"
"strings"
"time"
@ -176,6 +177,7 @@ func ProcessEvent(f RequestProcessor, request *Request) {
defer func() {
if r := recover(); r != nil {
log.Println(r)
log.Println(string(debug.Stack()))
}
}()