chore: debug error log

This commit is contained in:
rcmerci
2025-09-25 23:30:58 +08:00
committed by Tienson Qin
parent 86f88570d9
commit a2984574ae
2 changed files with 9 additions and 0 deletions

View File

@@ -41,6 +41,12 @@
(constantly nil)
(m/ap
(let [m (m/?> (m/relieve state-flow))]
(when (and (contains? m :git/current-repo)
(:git/current-repo m nil))
(log/error :sync-app-state
[m (select-keys @state/state
[:git/current-repo
:auth/id-token :auth/access-token :auth/refresh-token])]))
(c.m/<? (state/<invoke-db-worker :thread-api/sync-app-state m))
(p/resolve! <init-sync-done?))))]
(c.m/run-task* task)

View File

@@ -653,6 +653,9 @@
(def-thread-api :thread-api/sync-app-state
[new-state]
(when (and (contains? new-state :git/current-repo)
(nil? (:git/current-repo new-state)))
(log/error :thread-api/sync-app-state new-state))
(worker-state/set-new-state! new-state)
nil)