From dd5e4f54c8341f38b452bb0cc6d8ecfcf4f4cadc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5rten=20Nordheim?= Date: Mon, 7 Sep 2020 17:56:55 +0200 Subject: [PATCH] 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 --- src/network/kernel/qauthenticator.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 #include #include +#include #include #include #include @@ -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(msg.value); + qCDebug(lcAuthenticator) << message << ": " << reinterpret_cast(msg.value); gss_release_buffer(&minStat, &msg); } while (msgCtx); }