summaryrefslogtreecommitdiffstats
path: root/lib/Plugins/Bugzilla.cpp
diff options
context:
space:
mode:
authorZdenek Prikryl <zdeny@dhcp-lab-218.englab.brq.redhat.com>2009-04-28 17:08:09 +0200
committerZdenek Prikryl <zdeny@dhcp-lab-218.englab.brq.redhat.com>2009-04-28 17:08:09 +0200
commit2e6a6e8aed825e456600d01c8a805b6f6fd24c3a (patch)
treec58cba2913350fed9674813b3fe0a27e6639fbd2 /lib/Plugins/Bugzilla.cpp
parentb08d5c2cf630ecb89d2f22b985dcdfcf25494258 (diff)
downloadabrt-2e6a6e8aed825e456600d01c8a805b6f6fd24c3a.tar.gz
abrt-2e6a6e8aed825e456600d01c8a805b6f6fd24c3a.tar.xz
abrt-2e6a6e8aed825e456600d01c8a805b6f6fd24c3a.zip
new commlayerinner interface
Diffstat (limited to 'lib/Plugins/Bugzilla.cpp')
-rw-r--r--lib/Plugins/Bugzilla.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/Plugins/Bugzilla.cpp b/lib/Plugins/Bugzilla.cpp
index ed9e02c2..7a56966a 100644
--- a/lib/Plugins/Bugzilla.cpp
+++ b/lib/Plugins/Bugzilla.cpp
@@ -4,6 +4,7 @@
#include "PluginSettings.h"
#include "DebugDump.h"
#include "ABRTException.h"
+#include "ABRTCommLayer.h"
#include <iostream>
CReporterBugzilla::CReporterBugzilla() :
@@ -34,7 +35,7 @@ void CReporterBugzilla::Login()
{
rpc->call(m_pXmlrpcClient, m_pCarriageParm);
ret = xmlrpc_c::value_struct(rpc->getResult());
- std::cerr << "Login id: " << xmlrpc_c::value_int(ret["id"]) << std::endl;
+ ABRTCommLayer::debug("Login id: " + xmlrpc_c::value_int(ret["id"]));
}
catch (std::exception& e)
{
@@ -155,7 +156,7 @@ void CReporterBugzilla::NewBug(const map_crash_report_t& pCrashReport)
{
rpc->call(m_pXmlrpcClient, m_pCarriageParm);
ret = xmlrpc_c::value_struct(rpc->getResult());
- std::cerr << "New bug id: " << xmlrpc_c::value_int(ret["id"]) << std::endl;
+ ABRTCommLayer::debug("New bug id: " + xmlrpc_c::value_int(ret["id"]));
}
catch (std::exception& e)
{
@@ -169,11 +170,15 @@ void CReporterBugzilla::Report(const map_crash_report_t& pCrashReport, const std
std::string package = pCrashReport.find(FILENAME_PACKAGE)->second[CD_CONTENT];
std::string component = package.substr(0, package.rfind("-", package.rfind("-")-1));
std::string uuid = pCrashReport.find(CD_UUID)->second[CD_CONTENT];
+ ABRTCommLayer::status("Logging into bugzilla...");
Login();
+ ABRTCommLayer::status("Checking for duplicates...");
if (!CheckUUIDInBugzilla(component, uuid))
{
+ ABRTCommLayer::status("Creating new bug...");
NewBug(pCrashReport);
}
+ ABRTCommLayer::status("Logging out...");
Logout();
}