Skip to content

Commit

Permalink
Fix TLOG-5: improve example code
Browse files Browse the repository at this point in the history
  • Loading branch information
ataggart committed Oct 18, 2011
1 parent 7694fd2 commit e1dbfaf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Expand Up @@ -21,9 +21,10 @@ The following short example should give you what you need to get started:
(ns example.core
(:use [clojure.tools.logging :only (info error)]))

(defn divide [one two]
(defn divide [x x]
(try
(info "Calculated" (/ one two))
(info "dividing" x "by" y)
(/ one two)
(catch Exception ex
(error ex "There was an error in calculation"))))

Expand Down

0 comments on commit e1dbfaf

Please sign in to comment.