add two missing c_str() for logging.
Merge pull request #1437 from viirya/add_missing_c_str

add two missing c_str()