mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 15:40:12 +01:00
🎨 Logging
This commit is contained in:
parent
b0e9c1c8dd
commit
129ceada9b
1 changed files with 2 additions and 1 deletions
|
|
@ -117,7 +117,8 @@ func flushTx(tx *Transaction) {
|
||||||
case TxErrCodeDataIsSyncing:
|
case TxErrCodeDataIsSyncing:
|
||||||
util.PushErrMsg(Conf.Language(81), 5000)
|
util.PushErrMsg(Conf.Language(81), 5000)
|
||||||
default:
|
default:
|
||||||
logging.LogFatalf(logging.ExitCodeFatal, "transaction failed: %s", txErr.msg)
|
txData, _ := gulu.JSON.MarshalJSON(tx)
|
||||||
|
logging.LogFatalf(logging.ExitCodeFatal, "transaction failed [%d]: %s\n tx [%s]", txErr.code, txErr.msg, txData)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
elapsed := time.Now().Sub(start).Milliseconds()
|
elapsed := time.Now().Sub(start).Milliseconds()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue