notes example: add logging
This commit is contained in:
parent
22ea488666
commit
61939f88c9
1 changed files with 37 additions and 32 deletions
|
|
@ -109,6 +109,8 @@
|
|||
(loop []
|
||||
(let [client-socket (.accept server-socket)]
|
||||
(future
|
||||
(try
|
||||
(/ 1 0)
|
||||
(with-open [conn client-socket]
|
||||
(let [out (io/writer (.getOutputStream conn))
|
||||
is (.getInputStream conn)
|
||||
|
|
@ -140,5 +142,8 @@
|
|||
(basic-auth-response out uuid))
|
||||
(not (authenticate! session-id headers))
|
||||
(basic-auth-response out session-id)
|
||||
:else (home-response out session-id))))))
|
||||
:else (home-response out session-id))))
|
||||
(catch Throwable t
|
||||
(binding [*err* *out*]
|
||||
(println t))))))
|
||||
(recur)))
|
||||
|
|
|
|||
Loading…
Reference in a new issue