debug: add more steps for debugging

This commit is contained in:
Tienson Qin
2021-09-21 11:43:09 +08:00
parent 1b393d953d
commit a2bb381b1c
7 changed files with 30 additions and 24 deletions

View File

@@ -30,15 +30,16 @@
(let [step (get-in @state/state [:debug/write-acks file-path :step])]
(state/pub-event! [:instrument {:type :debug/write-failed
:payload {:step step}}])
(notification/show!
(str "Logseq failed to save the page "
page-title
" to the file: "
file-path
". Stop editing this page anymore, and copy all the blocks of this page to another editor to avoid any data-loss.\n"
"Last step: "
step)
:error)))))
;; (notification/show!
;; (str "Logseq failed to save the page "
;; page-title
;; " to the file: "
;; file-path
;; ". Stop editing this page anymore, and copy all the blocks of this page to another editor to avoid any data-loss.\n"
;; "Last step: "
;; step)
;; :error)
))))
default-write-ack-timeout)]
(swap! ack-wait-timeouts assoc file-path timeout)))))