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>
This commit is contained in:
parent
1cf84e7fd2
commit
dd5e4f54c8
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user