Fixing escaping issue with logging. Logging download status for document for debugging.