Skip to content

Commit

Permalink
Fixup docstring on capture (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielcompton authored and Martin Klepsch committed Sep 6, 2016
1 parent 39a5733 commit 08b7670
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/raven_clj/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,11 @@
"/" (butlast (string/split url #"/"))))
:project-id (Integer/parseInt (last (string/split url #"/")))}))

(defn capture [dsn event-info]
(defn capture
"Send a message to a Sentry server.
event-info is a map that should contain a :message key and optional
keys found at https://docs.getsentry.com/hosted/clientdev/#building-the-json-packet"
[dsn event-info]
(send-packet
(merge (parse-dsn dsn)
{:level "error"
Expand Down

0 comments on commit 08b7670

Please sign in to comment.