Browse Source

fix(dev): do not use sentry when dev

See-also: #7703
Andelf 2 years ago
parent
commit
662a8a919b
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/main/frontend/modules/instrumentation/sentry.cljs

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

@@ -44,8 +44,9 @@
                  event)})
 
 (defn init []
-  (let [config (clj->js config)]
-    (Sentry/init config)))
+  (when-not config/dev?
+    (let [config (clj->js config)]
+      (Sentry/init config))))
 
 (defn set-user!
   [id]