summaryrefslogtreecommitdiffstats
path: root/lib/Plugins/Logger.cpp
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2009-03-04 17:45:59 +0100
committerJiri Moskovcak <jmoskovc@redhat.com>2009-03-04 17:45:59 +0100
commit392329e8268de8fc9d77e36c1d50403c81afc62f (patch)
treed83705d8dd7758d45306595c7d0d0b0b0d3bfc72 /lib/Plugins/Logger.cpp
parentfb618b39a7de74b9cc58db322599603fc880ac36 (diff)
downloadabrt-392329e8268de8fc9d77e36c1d50403c81afc62f.tar.gz
abrt-392329e8268de8fc9d77e36c1d50403c81afc62f.tar.xz
abrt-392329e8268de8fc9d77e36c1d50403c81afc62f.zip
Fixed saving of user comment
Diffstat (limited to 'lib/Plugins/Logger.cpp')
-rw-r--r--lib/Plugins/Logger.cpp8
1 files changed, 7 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 != "")