浏览代码

chore: debug

Tienson Qin 1 年之前
父节点
当前提交
41fd4b2a85
共有 2 个文件被更改,包括 4 次插入1 次删除
  1. 2 1
      src/main/frontend/handler/events.cljs
  2. 2 0
      src/main/frontend/modules/instrumentation/sentry.cljs

+ 2 - 1
src/main/frontend/handler/events.cljs

@@ -490,7 +490,8 @@
         payload (assoc payload
                   :user-id user-uuid
                   :graph-id graph-uuid
-                  :tx-id tx-id)]
+                  :tx-id tx-id
+                  :db-based (config/db-based-graph? (state/get-current-repo)))]
     (Sentry/captureException error
       (bean/->js {:tags payload}))))
 

+ 2 - 0
src/main/frontend/modules/instrumentation/sentry.cljs

@@ -8,6 +8,8 @@
 
 (goog-define SENTRY-DSN "")
 
+(prn :debug :dsn SENTRY-DSN)
+
 (def config
   {:dsn SENTRY-DSN
    :release (util/format "logseq%s@%s" (cond