clean up debug prints

This commit is contained in:
Michael Zanetti 2019-03-03 20:08:10 +01:00
parent 8b2b2554a0
commit d8ec423e51
2 changed files with 2 additions and 4 deletions

View File

@ -638,13 +638,13 @@ void AWSClient::registerPushNotificationEndpoint(const QString &registrationId,
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]() {

View File

@ -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();
}
}