Skip to content

Commit

Permalink
log/request: add host request
Browse files Browse the repository at this point in the history
Signed-off-by: Avelino <31996+avelino@users.noreply.github.com>
  • Loading branch information
avelino committed Apr 17, 2024
1 parent 8925e89 commit 389d15c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/com/moclojer/log.clj
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,10 @@
(interceptor/on-request
::log-request
(fn [request]
(println :request-on request)
(log :info
:method (string/upper-case (name (:request-method request)))
:host (:server-name request)
:uri (:uri request)
:query-string (:query-string request))
request)))

0 comments on commit 389d15c

Please sign in to comment.