@classmethod<EOL><INDENT>def trace(cls, connection):<DEDENT>
if not connection:<EOL><INDENT>return<EOL><DEDENT>request = connection.request<EOL>response = connection.response<EOL>Printer.warn("<STR_LIT>" % (request.method, request.url, response.status_code))<EOL>Printer.log("<STR_LIT>")<EOL>Printer.json(request.headers)<EOL>Printer.log("<STR_LIT>")<EOL>Printer.json(request.data)<EOL>Printer.log("<STR_LIT>")<EOL>Printer.json(response.data)<EOL>if len(response.errors):<EOL><INDENT>Printer.log("<STR_LIT>")<EOL>Printer.json(response.errors)<EOL><DEDENT>
Trace connection information