diff options
author | Zdenek Prikryl <zdeny@dhcp-lab-218.englab.brq.redhat.com> | 2009-04-02 16:24:46 +0200 |
---|---|---|
committer | Zdenek Prikryl <zdeny@dhcp-lab-218.englab.brq.redhat.com> | 2009-04-02 16:24:46 +0200 |
commit | 62a15a2e7cc5186661bef2ec172422989c72e5db (patch) | |
tree | 8561ea8bfabbb1136a6ca7b222f18c7a6f343eb7 /lib/Plugins/Logger.cpp | |
parent | f02f0b3c6b8801584884fb2e4da0707417374185 (diff) | |
download | abrt-62a15a2e7cc5186661bef2ec172422989c72e5db.tar.gz abrt-62a15a2e7cc5186661bef2ec172422989c72e5db.tar.xz abrt-62a15a2e7cc5186661bef2ec172422989c72e5db.zip |
new crash types
Diffstat (limited to 'lib/Plugins/Logger.cpp')
-rw-r--r-- | lib/Plugins/Logger.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/Plugins/Logger.cpp b/lib/Plugins/Logger.cpp index c17e85e..c6e076f 100644 --- a/lib/Plugins/Logger.cpp +++ b/lib/Plugins/Logger.cpp @@ -45,15 +45,15 @@ void CLogger::LoadSettings(const std::string& pPath) } } -void CLogger::Report(const crash_report_t& pCrashReport) +void CLogger::Report(const map_crash_report_t& pCrashReport) { std::stringstream binaryFiles, commonFiles, additionalFiles, UUIDFile; std::ofstream fOut; - crash_report_t::const_iterator it; + map_crash_report_t::const_iterator it; for (it = pCrashReport.begin(); it != pCrashReport.end(); it++) { - if (it->second.m_sType == TYPE_TXT) + if (it->second[CD_TYPE] == type_crash_data_t_str[CD_TXT]) { if (it->first != FILENAME_UUID && it->first != FILENAME_ARCHITECTURE && @@ -62,26 +62,26 @@ void CLogger::Report(const crash_report_t& pCrashReport) { additionalFiles << it->first << std::endl; additionalFiles << "-----" << std::endl; - additionalFiles << it->second.m_sContent << std::endl << std::endl; + additionalFiles << it->second[CD_CONTENT] << std::endl << std::endl; } else if (it->first == FILENAME_UUID) { UUIDFile << it->first << std::endl; UUIDFile << "-----" << std::endl; - UUIDFile << it->second.m_sContent << std::endl << std::endl; + UUIDFile << it->second[CD_CONTENT] << std::endl << std::endl; } else { commonFiles << it->first << std::endl; commonFiles << "-----" << std::endl; - commonFiles << it->second.m_sContent << std::endl << std::endl; + commonFiles << it->second[CD_CONTENT] << std::endl << std::endl; } } - if (it->second.m_sType == TYPE_BIN) + if (it->second[CD_TYPE] == type_crash_data_t_str[CD_BIN]) { binaryFiles << it->first << std::endl; binaryFiles << "-----" << std::endl; - binaryFiles << it->second.m_sContent << std::endl << std::endl; + binaryFiles << it->second[CD_CONTENT] << std::endl << std::endl; } } |