Revert "if we debug log a request, debug log response/error in same block"

This reverts commit 88aee102779f9dcff189202d883e6f4e1a21fc0c.

The code is completely broken. It defines method accepting self as parameter
inside the function block.