diff options
author | Zdenek Prikryl <zdeny@dhcp-lab-218.englab.brq.redhat.com> | 2009-04-29 15:15:50 +0200 |
---|---|---|
committer | Zdenek Prikryl <zdeny@dhcp-lab-218.englab.brq.redhat.com> | 2009-04-29 15:15:50 +0200 |
commit | accbc95f18c7878266f066d0625f4a80202fcbc2 (patch) | |
tree | 671b5ed85720c7be74b7b94b7ee5b92e577f3a73 /lib/Plugins/Bugzilla.cpp | |
parent | 8442eaf5a6ddde159c4cda70ddca3efe0976ea50 (diff) | |
download | abrt-accbc95f18c7878266f066d0625f4a80202fcbc2.tar.gz abrt-accbc95f18c7878266f066d0625f4a80202fcbc2.tar.xz abrt-accbc95f18c7878266f066d0625f4a80202fcbc2.zip |
Fixed debug messages
Diffstat (limited to 'lib/Plugins/Bugzilla.cpp')
-rw-r--r-- | lib/Plugins/Bugzilla.cpp | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/lib/Plugins/Bugzilla.cpp b/lib/Plugins/Bugzilla.cpp index 73b5b0e..5ee3a86 100644 --- a/lib/Plugins/Bugzilla.cpp +++ b/lib/Plugins/Bugzilla.cpp @@ -5,7 +5,7 @@ #include "DebugDump.h" #include "ABRTException.h" #include "CommLayerInner.h" -#include <iostream> +#include <sstream> CReporterBugzilla::CReporterBugzilla() : m_sBugzillaURL("https://bugzilla.redhat.com/xmlrpc.cgi") @@ -35,7 +35,9 @@ void CReporterBugzilla::Login() { rpc->call(m_pXmlrpcClient, m_pCarriageParm); ret = xmlrpc_c::value_struct(rpc->getResult()); - comm_layer_inner_debug("Login id: " + xmlrpc_c::value_int(ret["id"])); + std::stringstream ss; + ss << xmlrpc_c::value_int(ret["id"]); + comm_layer_inner_debug("Login id: " + ss.str()); } catch (std::exception& e) { @@ -87,11 +89,13 @@ bool CReporterBugzilla::CheckUUIDInBugzilla(const std::string& pComponent, const void CReporterBugzilla::CreateNewBugDescription(const map_crash_report_t& pCrashReport, std::string& pDescription) { pDescription = "\nabrt detected crash.\n" - "\nHow to reproduce\n" + + "\nHow to reproduce\n" + "-----\n" + pCrashReport.find(CD_REPRODUCE)->second[CD_CONTENT] + - "\nCommnet\n" + + "\nCommnet\n" + "-----\n" + pCrashReport.find(CD_COMMENT)->second[CD_CONTENT] + - "\nAdditional information\n" + "\n\nAdditional information\n" "======\n"; map_crash_report_t::const_iterator it; @@ -156,7 +160,9 @@ void CReporterBugzilla::NewBug(const map_crash_report_t& pCrashReport) { rpc->call(m_pXmlrpcClient, m_pCarriageParm); ret = xmlrpc_c::value_struct(rpc->getResult()); - comm_layer_inner_debug("New bug id: " + xmlrpc_c::value_int(ret["id"])); + std::stringstream ss; + ss << xmlrpc_c::value_int(ret["id"]); + comm_layer_inner_debug("New bug id: " + ss.str()); } catch (std::exception& e) { |