wrap debug log in a call to format
Merge pull request #1187 from andyroyle/fix-ping-logging-message

wrap debug log in a call to format