diff options
| author | Zdenek Prikryl <zdeny@dhcp-lab-218.englab.brq.redhat.com> | 2009-04-08 15:26:05 +0200 |
|---|---|---|
| committer | Zdenek Prikryl <zdeny@dhcp-lab-218.englab.brq.redhat.com> | 2009-04-08 15:26:05 +0200 |
| commit | 70ccc1877c0d729b8c4aff450f6c4a3209e57c9b (patch) | |
| tree | 091757654735c31f3784f7c4840a105bcea14b96 /lib/Plugins/Logger.cpp | |
| parent | 477fa5323fad21b978cf8025a80041f979b2c27b (diff) | |
| download | abrt-70ccc1877c0d729b8c4aff450f6c4a3209e57c9b.tar.gz abrt-70ccc1877c0d729b8c4aff450f6c4a3209e57c9b.tar.xz abrt-70ccc1877c0d729b8c4aff450f6c4a3209e57c9b.zip | |
added new CD_ATT type
Diffstat (limited to 'lib/Plugins/Logger.cpp')
| -rw-r--r-- | lib/Plugins/Logger.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/Plugins/Logger.cpp b/lib/Plugins/Logger.cpp index de9e68f4..8f89838f 100644 --- a/lib/Plugins/Logger.cpp +++ b/lib/Plugins/Logger.cpp @@ -47,7 +47,7 @@ void CLogger::LoadSettings(const std::string& pPath) void CLogger::Report(const map_crash_report_t& pCrashReport) { - std::stringstream binaryFiles, commonFiles, additionalFiles, UUIDFile; + std::stringstream binaryFiles, commonFiles, bigTextFiles, additionalFiles, UUIDFile; std::ofstream fOut; map_crash_report_t::const_iterator it; @@ -77,6 +77,12 @@ void CLogger::Report(const map_crash_report_t& pCrashReport) commonFiles << it->second[CD_CONTENT] << std::endl << std::endl; } } + if (it->second[CD_TYPE] == CD_ATT) + { + bigTextFiles << it->first << std::endl; + bigTextFiles << "-----" << std::endl; + bigTextFiles << it->second[CD_CONTENT] << std::endl << std::endl; + } if (it->second[CD_TYPE] == CD_BIN) { binaryFiles << it->first << std::endl; @@ -106,6 +112,9 @@ void CLogger::Report(const map_crash_report_t& pCrashReport) fOut << "Additional information" << std::endl; fOut << "======" << std::endl << std::endl; fOut << additionalFiles.str() << std::endl; + fOut << "Big Text Files" << std::endl; + fOut << "======" << std::endl; + fOut << bigTextFiles.str() << std::endl; fOut << "Binary files" << std::endl; fOut << "======" << std::endl; fOut << binaryFiles.str() << std::endl; |
