summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMårten Nordheim <marten.nordheim@qt.io>2020-09-07 17:56:55 +0200
committerMårten Nordheim <marten.nordheim@qt.io>2020-09-11 11:30:57 +0200
commitdd5e4f54c8341f38b452bb0cc6d8ecfcf4f4cadc (patch)
tree45c9823ec276c70d234b4159307a7a1a3fb1164b /src
parent1cf84e7fd21a98a75b851b03467acf43c27d4504 (diff)
QAuthenticator: move debug printing to a logging category
The GSSAPI thing is a bit noisy and not useful unless you're debugging it specifically. Pick-to: 5.15 Change-Id: I4a8c14159ec889776d06e0970ddf66083d788b63 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/network/kernel/qauthenticator.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/network/kernel/qauthenticator.cpp b/src/network/kernel/qauthenticator.cpp
index 87fc2d847a..c23e82dd85 100644
--- a/src/network/kernel/qauthenticator.cpp
+++ b/src/network/kernel/qauthenticator.cpp
@@ -40,6 +40,7 @@
#include <qauthenticator.h>
#include <qauthenticator_p.h>
#include <qdebug.h>
+#include <qloggingcategory.h>
#include <qhash.h>
#include <qbytearray.h>
#include <qcryptographichash.h>
@@ -68,6 +69,9 @@
QT_BEGIN_NAMESPACE
+Q_DECLARE_LOGGING_CATEGORY(lcAuthenticator);
+Q_LOGGING_CATEGORY(lcAuthenticator, "qt.network.authenticator");
+
static QByteArray qNtlmPhase1();
static QByteArray qNtlmPhase3(QAuthenticatorPrivate *ctx, const QByteArray& phase2data);
#if QT_CONFIG(sspi) // SSPI
@@ -1658,7 +1662,7 @@ static void q_GSSAPI_error_int(const char *message, OM_uint32 stat, int type)
do {
gss_display_status(&minStat, stat, type, GSS_C_NO_OID, &msgCtx, &msg);
- qDebug() << message << ": " << reinterpret_cast<const char*>(msg.value);
+ qCDebug(lcAuthenticator) << message << ": " << reinterpret_cast<const char*>(msg.value);
gss_release_buffer(&minStat, &msg);
} while (msgCtx);
}