mirror of
https://github.com/logseq/logseq.git
synced 2026-06-01 19:01:22 +00:00
chore: debug error log
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user