Skip to content

[Interceptor] Logging the RequestBody #376

@FireDrunk

Description

@FireDrunk

Describe the bug
RequestBody.toString() doesn't provide any usable information

To Reproduce
Steps to reproduce the behavior:

  1. Create an Interceptor
  2. Override the onRequest method
  3. Try to log the RequestBody

Expected behavior
Something... usable.

Environmental Data:

  • Java Version: Adopt OpenJDK 11.0.8.10
  • Version: 3.11.02

Additional context
The problem is that it's almost impossible to disect the object. It potentially has things like Multi/Uniparts, or some basic fields.
That's exactly the type of body I want to log. Is there any example on how to log the fields set by the .field() function?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions