aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/auth/steps/MSAStep.cpp
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2022-12-27 17:04:42 +0100
committerSefa Eyeoglu <contact@scrumplex.net>2022-12-27 17:04:42 +0100
commitc8d8046412467d10abd439bf2066b2304122d7c6 (patch)
treeadb0a9a2b0a61c2246845c1452414158c58b4c4a /launcher/minecraft/auth/steps/MSAStep.cpp
parent4d334b645d0e230c19fa4756a4cbec28dce744d7 (diff)
downloadPrismLauncher-c8d8046412467d10abd439bf2066b2304122d7c6.tar.gz
PrismLauncher-c8d8046412467d10abd439bf2066b2304122d7c6.tar.bz2
PrismLauncher-c8d8046412467d10abd439bf2066b2304122d7c6.zip
refactor: add logging category for credentials
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
Diffstat (limited to 'launcher/minecraft/auth/steps/MSAStep.cpp')
-rw-r--r--launcher/minecraft/auth/steps/MSAStep.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/launcher/minecraft/auth/steps/MSAStep.cpp b/launcher/minecraft/auth/steps/MSAStep.cpp
index 16afcb42..6fc8d468 100644
--- a/launcher/minecraft/auth/steps/MSAStep.cpp
+++ b/launcher/minecraft/auth/steps/MSAStep.cpp
@@ -42,6 +42,7 @@
#include "minecraft/auth/Parsers.h"
#include "Application.h"
+#include "Logging.h"
using OAuth2 = Katabasis::DeviceFlow;
using Activity = Katabasis::Activity;
@@ -117,14 +118,12 @@ void MSAStep::onOAuthActivityChanged(Katabasis::Activity activity) {
// Succeeded or did not invalidate tokens
emit hideVerificationUriAndCode();
QVariantMap extraTokens = m_oauth2->extraTokens();
-#ifndef NDEBUG
if (!extraTokens.isEmpty()) {
- qDebug() << "Extra tokens in response:";
+ qCDebug(authCredentials()) << "Extra tokens in response:";
foreach (QString key, extraTokens.keys()) {
- qDebug() << "\t" << key << ":" << extraTokens.value(key);
+ qCDebug(authCredentials()) << "\t" << key << ":" << extraTokens.value(key);
}
}
-#endif
emit finished(AccountTaskState::STATE_WORKING, tr("Got "));
return;
}