Switch to radicalzephyr/ring.middleware.logger
This commit is contained in:
parent
9fa17f6f6c
commit
6c350faa58
2 changed files with 6 additions and 3 deletions
5
deps.edn
5
deps.edn
|
|
@ -3,9 +3,12 @@
|
|||
aero {:mvn/version "1.1.6"}
|
||||
http-kit {:mvn/version "2.3.0"}
|
||||
metosin/reitit {:mvn/version "0.4.2"}
|
||||
ring-logger {:mvn/version "1.0.1"}
|
||||
radicalzephyr/ring.middleware.logger {:mvn/version "0.6.0"}
|
||||
ring/ring-defaults {:mvn/version "0.3.2"}}
|
||||
|
||||
:mvn/repos {"central" {:url "https://repo1.maven.org/maven2/"}
|
||||
"clojars" {:url "https://repo.clojars.org/"}}
|
||||
|
||||
:aliases
|
||||
;; clojurescript build tool and dependencies (see also shadow-cljs.edn)
|
||||
{:cljs {:extra-deps {thheller/shadow-cljs {:mvn/version "2.8.109"}
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@
|
|||
(:require [org.httpkit.server :as http]
|
||||
[clojure.java.io :as io]
|
||||
[reitit.ring :as ring]
|
||||
[ring.logger :refer [wrap-log-response]]
|
||||
[ring.middleware.defaults :refer [wrap-defaults site-defaults]]
|
||||
[ring.middleware.logger :as logger]
|
||||
[heyarne.all-my-friends.env :refer [env]])
|
||||
(:gen-class))
|
||||
|
||||
|
|
@ -44,7 +44,7 @@
|
|||
:static {:resources "public"}
|
||||
:session false)
|
||||
(assoc-in [:security :anti-forgery] false)))
|
||||
(wrap-log-response)
|
||||
(logger/wrap-with-logger)
|
||||
(http/run-server {:port (env :port)}))))
|
||||
|
||||
#_(-main)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue