log(stringify) it, so there is only toString or pattern matching. Not sure what could be a better approach.
Taskor your result type. So in order to not do the logging on each method call, you can define the loghandler through which all requests with their results go.
Listwith two strings (the trait name and the method name). See: https://github.com/cornerman/sloth/blob/master/sloth/src/main/scala/Router.scala#L13
LogHandlerand in production the
LogHandleris empty. Otherwise, I agree with you - you normally want to log failures.
chameleonhinders a merge of the PR: cornerman/sloth#55