chore: add logs for assets-sync-loop-task

This commit is contained in:
rcmerci
2025-10-29 23:06:37 +08:00
committed by Tienson Qin
parent bdf5d66f80
commit 978cc5e51d
2 changed files with 4 additions and 1 deletions

View File

@@ -13,6 +13,7 @@
[frontend.worker.rtc.log-and-state :as rtc-log-and-state]
[frontend.worker.rtc.ws-util :as ws-util]
[frontend.worker.state :as worker-state]
[lambdaisland.glogi :as log]
[logseq.common.path :as path]
[logseq.db :as ldb]
[malli.core :as ma]
@@ -293,6 +294,7 @@
started-dfv
(m/sp
(try
(log/info :rtc-asset :loop-starting)
(started-dfv true)
(m/? (new-task--initial-download-missing-assets repo get-ws-create-task graph-uuid conn add-log-fn))
(->>

View File

@@ -248,7 +248,8 @@
(update-remote-schema-version! conn @*server-schema-version)
(reset! *assets-sync-loop-canceler
(c.m/run-task :assets-sync-loop-task
assets-sync-loop-task))
assets-sync-loop-task
:fail #(log/info :assets-sync-loop-task-stopped %)))
(->>
(let [event (m/?> mixed-flow)]
(case (:type event)