Make debug logging conditional
Make debug logging conditional

Debug logging was a major resource hog, and why bother with it when
everything works? And when it doesn't work, the problems are usually
highlighted by unit testing.

dxal34/antisweep,dxal34/antisweep