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);
|
QJsonDocument jsonDoc = QJsonDocument::fromVariant(payload);
|
||||||
|
|
||||||
qDebug() << "Registering push notification endpoint" << mobileDeviceId;
|
qDebug() << "Registering push notification endpoint";
|
||||||
// qDebug() << "POST" << url.toString();
|
// qDebug() << "POST" << url.toString();
|
||||||
// qDebug() << "HEADERS:";
|
// qDebug() << "HEADERS:";
|
||||||
// foreach (const QByteArray &hdr, request.rawHeaderList()) {
|
// foreach (const QByteArray &hdr, request.rawHeaderList()) {
|
||||||
// qDebug() << hdr << ":" << request.rawHeader(hdr);
|
// 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));
|
QNetworkReply *reply = m_nam->post(request, jsonDoc.toJson(QJsonDocument::Compact));
|
||||||
connect(reply, &QNetworkReply::finished, this, [reply]() {
|
connect(reply, &QNetworkReply::finished, this, [reply]() {
|
||||||
|
|||||||
@ -183,7 +183,6 @@ Item {
|
|||||||
if (askForPermissions === undefined) {
|
if (askForPermissions === undefined) {
|
||||||
askForPermissions = true;
|
askForPermissions = true;
|
||||||
}
|
}
|
||||||
print("********************************", PlatformHelper.device, PlatformHelper.deviceManufacturer, PlatformHelper.deviceModel)
|
|
||||||
|
|
||||||
if (!AWSClient.isLoggedIn) {
|
if (!AWSClient.isLoggedIn) {
|
||||||
print("AWS not logged in. Cannot register for push");
|
print("AWS not logged in. Cannot register for push");
|
||||||
@ -268,7 +267,6 @@ Item {
|
|||||||
Connections {
|
Connections {
|
||||||
target: PushNotifications
|
target: PushNotifications
|
||||||
onTokenChanged: {
|
onTokenChanged: {
|
||||||
print("Push token changed", PlatformHelper.deviceManufacturer, PlatformHelper.deviceModel)
|
|
||||||
setupPushNotifications();
|
setupPushNotifications();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user