clean up debug prints
This commit is contained in:
parent
8b2b2554a0
commit
d8ec423e51
@ -638,13 +638,13 @@ void AWSClient::registerPushNotificationEndpoint(const QString ®istrationId,
|
||||
|
||||
QJsonDocument jsonDoc = QJsonDocument::fromVariant(payload);
|
||||
|
||||
qDebug() << "Registering push notification endpoint" << mobileDeviceId;
|
||||
qDebug() << "Registering push notification endpoint";
|
||||
// qDebug() << "POST" << url.toString();
|
||||
// qDebug() << "HEADERS:";
|
||||
// foreach (const QByteArray &hdr, request.rawHeaderList()) {
|
||||
// qDebug() << hdr << ":" << request.rawHeader(hdr);
|
||||
// }
|
||||
qDebug() << "Payload:" << qUtf8Printable(jsonDoc.toJson(QJsonDocument::Compact));
|
||||
// qDebug() << "Payload:" << qUtf8Printable(jsonDoc.toJson(QJsonDocument::Compact));
|
||||
|
||||
QNetworkReply *reply = m_nam->post(request, jsonDoc.toJson(QJsonDocument::Compact));
|
||||
connect(reply, &QNetworkReply::finished, this, [reply]() {
|
||||
|
||||
@ -183,7 +183,6 @@ Item {
|
||||
if (askForPermissions === undefined) {
|
||||
askForPermissions = true;
|
||||
}
|
||||
print("********************************", PlatformHelper.device, PlatformHelper.deviceManufacturer, PlatformHelper.deviceModel)
|
||||
|
||||
if (!AWSClient.isLoggedIn) {
|
||||
print("AWS not logged in. Cannot register for push");
|
||||
@ -268,7 +267,6 @@ Item {
|
||||
Connections {
|
||||
target: PushNotifications
|
||||
onTokenChanged: {
|
||||
print("Push token changed", PlatformHelper.deviceManufacturer, PlatformHelper.deviceModel)
|
||||
setupPushNotifications();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user