Replace std::cout with LogDebug.

* Replace std::cout with LogDebug
* Remove commented out lines
* Use LogWarning for reporting a problem