Type Method
default(environment:)
Create a default
ErrorMiddleware. Logs each error at its DebuggableError/logLevel, or .debug for an error that isn’t a DebuggableError, and converts Error to Response based on Environment and on conformance to AbortError and Debuggable.static func `default`(environment: Environment) -> ErrorMiddleware
Parameters
environmentThe environment to respect when presenting errors.
Discussion
To report errors at a different level, give them a logLevel or use your own ErrorMiddleware.