Skip to content

Commit

Permalink
log sections
Browse files Browse the repository at this point in the history
  • Loading branch information
duck1123 committed Aug 27, 2012
1 parent d30f33b commit 2da6f07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ciste/sections.clj
Expand Up @@ -103,7 +103,7 @@ Example:

(defn log-section
[sym dispatch-val]
(log/debugf "%s %s" sym dispatch-val))
(log/debugf "%s - %s" dispatch-val sym))

(defmacro defsection
[name dispatch-val binding-form & body]
Expand All @@ -122,7 +122,7 @@ Example:
full-symbol# (symbol (str declared-ns# "/" method-name#))]
`(defmethod ~full-symbol# ~dispatch-val#
~binding-form
(log-section '~full-symbol# '~dispatch-val#)
(log-section '~name# '~dispatch-val#)
~@body))
(throw (IllegalArgumentException. (str "Can not resolve section: " name))))))

0 comments on commit 2da6f07

Please sign in to comment.