MiddlewareFactoryErrorOptions
Home > @backstage/backend-app-api
> MiddlewareFactoryErrorOptions
Options passed to the MiddlewareFactory.error() middleware.
Signature:
export interface MiddlewareFactoryErrorOptions
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
logAllErrors? | boolean | (Optional) Whether any 4xx errors should be logged or not. If not specified, default to only logging 5xx errors. | |
showStackTraces? | boolean | (Optional) Whether error response bodies should show error stack traces or not. If not specified, by default shows stack traces only in development mode. |