Avoid some memory copying when logging

It's not huge but it does cut down on debug's time spent in logging a bit.

-[Unknown]