From 5a4c1906e32df81b92bf77582492c27d4a09057e Mon Sep 17 00:00:00 2001 From: Alan Morris Date: Wed, 15 Feb 2023 13:37:45 -0700 Subject: [PATCH] Set to new server, disable debug statements --- Studio/Data/Telemetry.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Studio/Data/Telemetry.cpp b/Studio/Data/Telemetry.cpp index 4df88b08c3..8639d4d4d3 100644 --- a/Studio/Data/Telemetry.cpp +++ b/Studio/Data/Telemetry.cpp @@ -63,11 +63,11 @@ void Telemetry::handle_network_reply(QNetworkReply* reply) { // get response from json QJsonObject json_obj = json.object(); if (json_obj["response"].toString() == "ok") { - SW_DEBUG("Telemetry::handleNetworkReply: ok"); + //SW_DEBUG("Telemetry::handleNetworkReply: ok"); auto events = prefs_.get_pending_telemetry_events(); if (!events.empty()) { - SW_DEBUG("Telemetry::handleNetworkReply: sending pending events"); + //SW_DEBUG("Telemetry::handleNetworkReply: sending pending events"); auto event = events.front(); events.pop_front(); prefs_.set_pending_telemetry_events(events); @@ -77,13 +77,12 @@ void Telemetry::handle_network_reply(QNetworkReply* reply) { return; } } catch (std::exception& e) { - SW_DEBUG("Telemetry::handleNetworkReply: exception: {}", e.what()); + //SW_DEBUG("Telemetry::handleNetworkReply: exception: {}", e.what()); return; } enabled_ = false; // store event for later retry - SW_DEBUG("Storing event for later retry"); store_event(active_event_); active_event_ = ""; } @@ -120,7 +119,7 @@ void Telemetry::send_event(const QString& event) { QUrlQuery query; query.addQueryItem("secret", api_secret); - QString server = "http://127.0.0.1:5001"; + QString server = "https://tracker.shapeworks-cloud.org:5001"; QUrl url(server + "/post_json"); url.setQuery(query); QNetworkRequest network_request(url);