fixed issue with log groupings

This commit is contained in:
Stuart Mitchell 2015-07-17 14:16:56 +12:00
parent 8caee1115b
commit 62251dfe2b
2 changed files with 2 additions and 3 deletions

View File

@ -64,7 +64,6 @@
[handler]
(fn debug-handler
[db v]
(log "-- New Event ----------------------------------------------------")
(group "re-frame event: " v)
(let [new-db (handler db v)
diff (data/diff db new-db)]

View File

@ -16,8 +16,8 @@
{:log #(.log js/console %)
:warn #(.warn js/console %)
:error #(.error js/console %)
:group #(if (.group js/console) (.group js/console %) (.log js/console %)) ;; group does not exist < IE 11
:groupEnd #(when (.groupEnd js/console) (.groupEnd js/console))}) ;; groupEnd does not exist < IE 11
:group #(if (.-groupCollapsed js/console) (.groupCollapsed js/console %) (.log js/console %)) ;; group does not exist < IE 11
:groupEnd #(when (.-groupEnd js/console) (.groupEnd js/console))}) ;; groupEnd does not exist < IE 11
;; holds the current set of loggers.
(def loggers (atom default-loggers))