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