Error Signature:
(defmacro error "Error level logging using print-style args." {:arglists '([message & more] [throwable message & more])} [& args] `(logp :error ~@args ))
which means that with only one parameter (as in (error some-exception) ), the parameter is a message (which in your case is toString some exception).
If you want to register a stack, you will need a second message with a parameter, for example:
(def ex (RuntimeException. "ex")) (error ex "Something broke!")
or
(error ex ex)
source share