Browse files

logging and no task

  • Loading branch information...
1 parent a38b932 commit 4323ffc9152185331a50d114e1d26d509b8717bd @duck1123 committed Aug 1, 2012
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)))

0 comments on commit 4323ffc

Please sign in to comment.