Make logging more efficient in transport

Currently, transport does all the string format work on the request
and then it tries to log it without checking first if it is even
going to print.  This is low enough level code that it should be
more efficient.

Change-Id: I12ec7fe7488252c3b02c246179cdd7c1cf136716