Skip to content

Commit

Permalink
Only log when running locally
Browse files Browse the repository at this point in the history
While I presume there's some kind of logging we might value in production, the logging effect
written here is just for local development since production objects get "mangled" by advanced
compilation, thus becoming useless.
  • Loading branch information
futuro committed Sep 4, 2023
1 parent 702d34f commit 5d51f3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/software/justenough/itsallgravie/utils.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
(rf/reg-fx
::log
(fn [value]
(js/console.log value)))
(when goog.DEBUG
(js/console.log value))))

(rf/reg-cofx
::server-hostname
Expand Down

0 comments on commit 5d51f3c

Please sign in to comment.