Module: LogStruct::Integrations::RackErrorHandler::ParseErrorLogging

Extended by:
T::Helpers, T::Sig
Defined in:
lib/log_struct/integrations/rack_error_handler/parse_error_logging.rb

Overview

Prepended to ActionDispatch::Request. When Rails can't parse a request's body (malformed JSON), it logs the whole body at debug level, where nothing filters it. LogStruct logs the body's size and type instead. The request line and the ParseError's error line are written as usual.