Fix building a logging statement in debug code