🎨 Logging

This commit is contained in:
Daniel 2023-12-25 15:23:01 +08:00
parent b0e9c1c8dd
commit 129ceada9b
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -117,7 +117,8 @@ func flushTx(tx *Transaction) {
case TxErrCodeDataIsSyncing:
util.PushErrMsg(Conf.Language(81), 5000)
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()