Replace std::cout with LogDebug.
Merge pull request #609 from ianna/replace-cout-with-logdebug

Replace std::cout with LogDebug.