Permalink
Browse files

Fixed test parameter.

  • Loading branch information...
1 parent 7df95a4 commit aad34153ddf05a03bbf35bd477534065c576d3d3 @malcolmsparks committed Jul 25, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/main/clojure/clj_logging_config/log4j.clj
@@ -118,8 +118,8 @@
(defn ^{:private true}
set-logger
- [[logger {:keys [name level out encoding pattern layout filter additivity header footer no-test]
- :or {name "_default" level :info encoding "UTF-8" test :none}
+ [[logger {:keys [name level out encoding pattern layout filter additivity header footer test]
+ :or {name "_default" level :info encoding "UTF-8" test true}
:as args}]]
(ensure-internal-logging!)
(debug (format "Set logger: logger is %s, args is %s" logger args))
@@ -186,7 +186,7 @@
(if additivity (.setAdditivity logger additivity))
;; Test the logger
- (when (not= test :none)
+ (when (true? test)
(. logger log Level/ALL (format "clj-logging-config: Testing logger %s... 1..2..3.." (.getName logger))))))
(defn set-loggers! [& {:as args}]

0 comments on commit aad3415

Please sign in to comment.