Skip to content

Write a debug decorator for handle methods #10

@mw44118

Description

@mw44118

Should work like this:

@debug
def handle(self, req):
    ...

and it will dump all the incoming request data as well as the outgoing response data.

Maybe it would be better to have a family of decorators, like this:

@logrequest
@logresponse
def handle(self,  req):

and so forth.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions