This commit is contained in:
Daniel 2025-06-14 10:16:46 +08:00
parent 0651e8d48f
commit 31121977ec
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -21,7 +21,6 @@ import (
"errors" "errors"
"fmt" "fmt"
"path/filepath" "path/filepath"
"runtime/debug"
"slices" "slices"
"strings" "strings"
"sync" "sync"
@ -155,8 +154,7 @@ func performTx(tx *Transaction) (ret *TxErr) {
defer func() { defer func() {
if e := recover(); nil != e { if e := recover(); nil != e {
stack := debug.Stack() msg := fmt.Sprintf("PANIC RECOVERED: %v\n\t%s\n", e, logging.ShortStack())
msg := fmt.Sprintf("PANIC RECOVERED: %v\n\t%s\n", e, stack)
logging.LogErrorf(msg) logging.LogErrorf(msg)
if 1 == tx.state.Load() { if 1 == tx.state.Load() {