Resolve reflection warnings

This commit is contained in:
Unknown 2018-10-16 22:51:43 +09:00
parent a77a583c09
commit 6322bb99f1
2 changed files with 4 additions and 4 deletions

View file

@ -66,9 +66,9 @@
:headers {"Content-Type" "text/plain"} :headers {"Content-Type" "text/plain"}
:body (str "Malformed " (-> e ex-data :format pr-str) " request.")}) :body (str "Malformed " (-> e ex-data :format pr-str) " request.")})
(defn wrap-log-to-console [handler e {:keys [uri request-method] :as req}] (defn wrap-log-to-console [handler ^Throwable e {:keys [uri request-method] :as req}]
(print! *out* (Instant/now) request-method (pr-str uri) "=>" (.getMessage e)) (print! *out* (Instant/now) request-method (pr-str uri) "=>" (.getMessage e))
(.printStackTrace e *out*) (.printStackTrace e ^PrintWriter *out*)
(handler e req)) (handler e req))
;; ;;

View file

@ -86,9 +86,9 @@
:headers {"Content-Type" "text/plain"} :headers {"Content-Type" "text/plain"}
:body (str "Malformed " (-> e ex-data :format pr-str) " request.")}) :body (str "Malformed " (-> e ex-data :format pr-str) " request.")})
(defn wrap-log-to-console [handler e {:keys [uri request-method] :as req}] (defn wrap-log-to-console [handler ^Throwable e {:keys [uri request-method] :as req}]
(print! *out* (Instant/now) request-method (pr-str uri) "=>" (.getMessage e)) (print! *out* (Instant/now) request-method (pr-str uri) "=>" (.getMessage e))
(.printStackTrace e *out*) (.printStackTrace e ^PrintWriter *out*)
(handler e req)) (handler e req))
;; ;;