diff options
author | MÃ¥rten Nordheim <marten.nordheim@qt.io> | 2020-09-07 17:56:55 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2020-09-14 16:40:02 +0000 |
commit | 60581e016152e01723a85b53d27c4399100c0488 (patch) | |
tree | ff2caaff5593d518023058c99ac89fc76c00e715 /src | |
parent | bbfe51e85a63af11b1c5c30ce4220bc9ed98faaa (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.
Change-Id: I4a8c14159ec889776d06e0970ddf66083d788b63
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
(cherry picked from commit dd5e4f54c8341f38b452bb0cc6d8ecfcf4f4cadc)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/network/kernel/qauthenticator.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/network/kernel/qauthenticator.cpp b/src/network/kernel/qauthenticator.cpp index f4b9f5dfef..86242b011f 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 @@ -1673,7 +1677,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); } |