mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 07:30:12 +01:00
🎨 Database gallery view https://github.com/siyuan-note/siyuan/issues/10414
This commit is contained in:
parent
0651e8d48f
commit
31121977ec
1 changed files with 1 additions and 3 deletions
|
|
@ -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() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue