This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-09-23
Channels
- # announcements (2)
- # architecture (16)
- # babashka (26)
- # beginners (106)
- # calva (173)
- # chlorine-clover (19)
- # cider (36)
- # cljdoc (4)
- # clojure (113)
- # clojure-berlin (3)
- # clojure-czech (3)
- # clojure-dev (5)
- # clojure-europe (37)
- # clojure-france (3)
- # clojure-hamburg (12)
- # clojure-italy (4)
- # clojure-nl (2)
- # clojure-uk (22)
- # clojurescript (38)
- # cryogen (10)
- # cursive (30)
- # data-science (7)
- # datascript (1)
- # datomic (13)
- # deps-new (7)
- # depstar (13)
- # duct (3)
- # events (2)
- # exercism (3)
- # fulcro (31)
- # graalvm (56)
- # graphql (1)
- # helix (5)
- # java (12)
- # jobs-discuss (19)
- # kaocha (13)
- # luminus (1)
- # lumo (4)
- # malli (5)
- # off-topic (17)
- # parinfer (1)
- # pathom (1)
- # pedestal (7)
- # rdf (10)
- # re-frame (1)
- # remote-jobs (7)
- # rum (6)
- # shadow-cljs (4)
- # tools-deps (41)
- # uncomplicate (3)
- # vim (14)
Maybe use something like the update
in duct-web-module-hack
below to remove the ig/ref
to :duct.middleware.web/log-requests
from your root handler's :middleware
?
(defn read-config
"Read the duct config"
[]
(duct/read-config (io/resource "config.edn") readers))
(defn duct-web-module-hack
"remove these configurations because they contain references to integrant components that we don't actually want to
use. this is a hack."
[config]
(update config :duct.handler/root dissoc :router :middleware))
(defn prep
"Convenience fn to prep our app's config"
[& [profiles]]
(-> (read-config)
(duct/prep-config profiles)
duct-web-module-hack))
@val_waeselynck Add
:duct.middleware.web/log-requests
{:logger nil}
to your base profile in config.edn
(or if you want this only in dev, add it to devn.edn
) and it should do it.Thanks, will try!