This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-08-03
Channels
- # announcements (12)
- # babashka (36)
- # beginners (126)
- # calva (26)
- # cider (10)
- # clj-kondo (71)
- # cljdoc (3)
- # cljsrn (2)
- # clojure (232)
- # clojure-australia (1)
- # clojure-europe (11)
- # clojure-france (20)
- # clojure-nl (4)
- # clojure-norway (1)
- # clojure-serbia (4)
- # clojure-uk (6)
- # clojurescript (62)
- # conjure (5)
- # cursive (12)
- # data-science (1)
- # datomic (57)
- # deps-new (1)
- # duct (3)
- # emacs (5)
- # events (8)
- # fulcro (6)
- # graalvm (5)
- # helix (3)
- # jobs (6)
- # jobs-discuss (3)
- # kaocha (4)
- # lsp (128)
- # malli (12)
- # missionary (22)
- # off-topic (1)
- # pathom (7)
- # polylith (27)
- # quil (1)
- # re-frame (20)
- # react (9)
- # reitit (12)
- # releases (8)
- # remote-jobs (3)
- # sci (3)
- # shadow-cljs (9)
- # spacemacs (10)
- # tools-deps (7)
- # vim (7)
- # xtdb (14)
Any recommendations on how to log each request in Reitit? Preferably with mulog Should I create my own custom middlware def? I assume adding logging to the reitit exception middleware is only going to log exceptions and not every request. (We have very little understanding of how our customers will use the new API, so would like to capture all usage). Thank you.
@jr0cket I would create a new middleware and mount it outside of the router, so it catches also routing misses.
Sound good. Do you think this example ring handler would just work with reitit, or would some tweaking be required https://github.com/BrunoBonacci/mulog/blob/master/doc/ring-tracking.md
sure it works, any ring-compatible middleware works with reitit. Only thing is that example doesn’t have the 3-arity version, so it would not work with ring-async
CHANGELOG: https://github.com/metosin/reitit/blob/master/CHANGELOG.md#0514-2021-08-03
There's an odd behavior with the latest metosin/ring-swagger-ui
- the "Execute" button in the swagger ui doesn't click.
I don't know if it's a local issue for me, but I don't face any issues with metosin/reitit "0.5.13"
Yes, I did press "try" first. No errors in Chrome's console and no traffic in the "Network" dev-tools tab
I reproduce it with:
• "Try it out"
• "Execute" -> works
• Update the body
's json (any field)
• "Execute" -> Doesn't work
I'll try to prepare a demo project