in file_management/src/file_upload/file_manager_strategy.cpp [79:108]
void printCache(std::unordered_map<DataToken, FileTokenInfo> token_store,
std::unordered_map<std::string, std::list<DataToken>> file_tokens,
std::unordered_map<std::string, FileTokenInfo> staged_tokens_) {
{
std::stringstream ss;
for (auto& token_info : token_store) {
ss << token_info.first << ": " << token_info.second.file_path_ << ", " << token_info.second.position_ << std::endl;
}
AWS_LOG_DEBUG(__func__,
"Cache Info: token_store \n %s", ss.str().c_str());
}
{
std::stringstream ss;
for (auto &file_token : file_tokens) {
ss << file_token.first << ": ";
for (auto &tokens : file_token.second) {
ss << tokens;
}
ss << std::endl;
}
AWS_LOG_DEBUG(__func__,
"Cache Info: file_tokens \n %s", ss.str().c_str());
}
std::stringstream ss;
for (auto& token_info : staged_tokens_) {
ss << token_info.first << ": " << token_info.second.file_path_ << ", " << token_info.second.position_ << std::endl;
}
AWS_LOG_DEBUG(__func__,
"Cache Info: staged_tokens \n %s", ss.str().c_str());
}