Skip to content

Commit

Permalink
Set to new server, disable debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
akenmorris committed Feb 15, 2023
1 parent ff8c5af commit 5a4c190
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Studio/Data/Telemetry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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_ = "";
}
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 5a4c190

Please sign in to comment.