This middleware will log Request/Response details. It can be controlled by setting a corresponding
operation mode to the process.env.EXTENDED_REQUEST_LOGGING ENV var of the service.
The following modes are supported:
OFF (or when a the ENV var is undefined, which is the default) = Disables the extended logging
ERRORS_ONLY = Enables the logging if the res.code >= 400 OR res.body fits a standard GQL error shape
ALL = Enables the logging of every request/response, be it successful or error.
TODO: Introduce an operation mode for logging only at some intervals, for when we don't need to log
every single req/res during high load.
This middleware will log Request/Response details. It can be controlled by setting a corresponding operation mode to the
process.env.EXTENDED_REQUEST_LOGGING
ENV var of the service.The following modes are supported:
OFF
(or when a the ENV var is undefined, which is the default) = Disables the extended loggingERRORS_ONLY
= Enables the logging if theres.code >= 400
ORres.body
fits a standard GQL error shapeALL
= Enables the logging of every request/response, be it successful or error.TODO: Introduce an operation mode for logging only at some intervals, for when we don't need to log every single req/res during high load.