Hello. How to setup retitit-swagger to group APIs under different group names? Is there a piece of code sample? THX!😊
So often when i get an exception
I just see
{
"type": "exception",
"class": "<http://java.io|java.io>.IOException"
}
How can i see the full stacktrace
the exception doesnt seem to be printed in the logs
It is kind of hard to know what happened or where
reitit doesn’t log by default and hides extra info from clients for security reasons, will change that in 1.0.0.
for now, you can swap the default excepton-mw to:
(exception/create-exception-middleware
(merge
exception/default-handlers
{::exception/wrap (fn [handler ^Exception e request]
(log/error e (.getMessage e))
(handler e request))}))
e.g. “wrap all exception handlers with a code that logs the error”