Fix command debugging.

You hope it must have been a late night commit originally when you end
up having to debug your debug statement.
(cherry picked from commit 849b25d664d340386a00c9bcff1e1ca18430169f)