diff --git a/src/bugzillaintegration/libbugzilla/exceptions.cpp b/src/bugzillaintegration/libbugzilla/exceptions.cpp --- a/src/bugzillaintegration/libbugzilla/exceptions.cpp +++ b/src/bugzillaintegration/libbugzilla/exceptions.cpp @@ -20,8 +20,8 @@ #include "exceptions.h" - #include "apijob.h" +#include "bugzilla_debug.h" namespace Bugzilla { @@ -46,6 +46,9 @@ !m_message.isNull()) { m_isError = true; } + if (m_isError) { + qCWarning(BUGZILLA_LOG) << "APIException:" << object.toVariantHash(); + } } APIException::APIException(const APIException &other) @@ -73,6 +76,7 @@ : Exception() , m_job(job) { + qCWarning(BUGZILLA_LOG) << "ProtocolException:" << whatString(); } ProtocolException::ProtocolException(const ProtocolException &other) @@ -108,6 +112,7 @@ RuntimeException::RuntimeException(const QString &reason) : m_reason(reason) { + qCWarning(BUGZILLA_LOG) << "RuntimeException:" << whatString(); } QString RuntimeException::whatString() const