diff options
| author | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-03-04 17:45:59 +0100 |
|---|---|---|
| committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-03-04 17:45:59 +0100 |
| commit | 392329e8268de8fc9d77e36c1d50403c81afc62f (patch) | |
| tree | d83705d8dd7758d45306595c7d0d0b0b0d3bfc72 /lib | |
| parent | fb618b39a7de74b9cc58db322599603fc880ac36 (diff) | |
Fixed saving of user comment
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/Plugins/Logger.cpp | 8 | ||||
| -rw-r--r-- | lib/Plugins/Mailx.cpp | 6 |
2 files changed, 13 insertions, 1 deletions
diff --git a/lib/Plugins/Logger.cpp b/lib/Plugins/Logger.cpp index 37dfa47..32f45a3 100644 --- a/lib/Plugins/Logger.cpp +++ b/lib/Plugins/Logger.cpp @@ -23,7 +23,7 @@ #include <fstream> CLogger::CLogger() : - m_sLogPath("/tmp/CCLogger"), + m_sLogPath("/var/log/abrt-logger"), m_bAppendLogs(true) {} @@ -90,6 +90,12 @@ void CLogger::Report(const crash_report_t& pReport) fOut << "-----------" << std::endl; fOut << pReport.m_sTextData2 << std::endl << std::endl; } + if (pReport.m_sComment != "") + { + fOut << "User Comments" << std::endl; + fOut << "-----------" << std::endl; + fOut << pReport.m_sComment << std::endl << std::endl; + } fOut << "Binary reports" << std::endl; fOut << "==============" << std::endl; if (pReport.m_sBinaryData1 != "") diff --git a/lib/Plugins/Mailx.cpp b/lib/Plugins/Mailx.cpp index c1cb631..11a9a6c 100644 --- a/lib/Plugins/Mailx.cpp +++ b/lib/Plugins/Mailx.cpp @@ -99,6 +99,12 @@ void CMailx::Report(const crash_report_t& pReport) ss << "-----------" << std::endl; ss << pReport.m_sTextData2 << std::endl << std::endl; } + if (pReport.m_sComment != "") + { + ss << "User Comments" << std::endl; + ss << "-----------" << std::endl; + ss << pReport.m_sComment << std::endl << std::endl; + } ss << "Binary reports" << std::endl; ss << "==============" << std::endl; ss << "See the attachment[s]" << std::endl; |
