File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11(ns compojure.api.exception
22 (:require [ring.util.http-response :refer [internal-server-error bad-request]]
33 [clojure.walk :refer [postwalk]]
4- [compojure.api.logging :as log ]
4+ [compojure.api.impl. logging :as logging ]
55 [schema.utils :as su])
66 (:import [schema.utils ValidationError NamedError]
77 [com.fasterxml.jackson.core JsonParseException]
1717 Error response only contains class of the Exception so that it won't accidentally
1818 expose secret details."
1919 [^Exception e _ _]
20- (log /log! :error e (.getMessage e))
20+ (logging /log! :error e (.getMessage e))
2121 (internal-server-error {:type " unknown-exception"
2222 :class (.getName (.getClass e))}))
2323
Original file line number Diff line number Diff line change 1- (ns ^:no-doc compojure.api.logging
1+ (ns ^:no-doc compojure.api.impl. logging
22 " Internal Compojure-api logging utility"
33 (:require [clojure.string :as str]))
44
You can’t perform that action at this time.
0 commit comments