better logging when safe-read-str fails

This commit is contained in:
Martin Klepsch 2018-04-19 11:22:23 +02:00
parent 687f29a591
commit 6e2c04a849
No known key found for this signature in database
GPG Key ID: 1A35E702AD48A9F6
1 changed files with 1 additions and 6 deletions

View File

@ -145,12 +145,7 @@
(try
(json/read-str s :key-fn keyword)
(catch Exception ex
(do (log/error "Exception when parsing json string:"
s
"message:"
ex)
nil)))))
(log/error ex "Exception when parsing json string:" s)))))
(def req-id-tracker
;; HACK to ensure previous random-number approach doesn't lead to