It seems good but client library should not log the message.
If try to support this idea, we need more changes.
I think we can detect JSON is broken or not from `"#{msg}: #{res.body}"` message.