Skip to content

Provide option for logging string responses #9

@matthewtcarter

Description

@matthewtcarter

Often times we see DRF implementations that raise serialization or validation errors from views as simple string responses. It'd be nice to have the option of forcing that into a Boston Logger-controlled JSON structure to get the response text without breaking JSON serializability.

E.g.:

"response": {
    "status_code": 400,
    "string_response": "Validation error text here"
}

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

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions