Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

logging and no task

  • Loading branch information...
commit 4323ffc9152185331a50d114e1d26d509b8717bd 1 parent a38b932
@duck1123 authored
Showing with 6 additions and 5 deletions.
  1. +6 −5 src/ciste/initializer.clj
View
11 src/ciste/initializer.clj
@@ -43,10 +43,10 @@ Example:
server1.example.com"
[& body]
`(let [init-fn# (fn []
- #_(log/debug (str "running initializer - " *ns*))
+ (log/debugf "running initializer - %s" *ns*)
~@body)]
+ (log/debugf "adding initializer - %s" *ns*)
(dosync
- #_(log/debug (str "adding initializer - " *ns*))
(alter *initializers* conj init-fn#))
(try
(when (environment) (init-fn#))
@@ -55,7 +55,8 @@ Example:
(defn run-initializers!
"Run all initializers"
[]
- (task
- (doseq [init-fn @*initializers*]
- (init-fn))))
+
+ (log/debug "running initializers")
+ (doseq [init-fn @*initializers*]
+ (init-fn)))
Please sign in to comment.
Something went wrong with that request. Please try again.