From f933f68bffb64c1de4a64c54d7a0e9ab3a568cd1 Mon Sep 17 00:00:00 2001 From: Jared McCluskey Date: Thu, 9 May 2024 07:49:56 -0700 Subject: [PATCH] update logs (#168) --- mirror-godot-app/scripts/autoload/analytics/analytics_v2.gd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mirror-godot-app/scripts/autoload/analytics/analytics_v2.gd b/mirror-godot-app/scripts/autoload/analytics/analytics_v2.gd index 00d0608d..d2b99b20 100644 --- a/mirror-godot-app/scripts/autoload/analytics/analytics_v2.gd +++ b/mirror-godot-app/scripts/autoload/analytics/analytics_v2.gd @@ -51,16 +51,16 @@ func _send_track_event(event: AnalyticsEvent, properties := {}) -> void: var promise = self.post_request_ext(TRACK_EVENT, _ANALYTICS_URL_TRACK, data) var res = await promise.wait_till_fulfilled() if promise.is_error(): - print("Error sending track event: %s" % [res]) + print("Error sending track event, promise: %s" % [res]) else: if (res.has('json_result') and res.json_result.has('status')): var status = res.json_result.status # 0 is an error from Mixpanel *EVEN IF* it's 200 HTTP status if (status == 0): if (res.json_result.has('error')): - print("Error sending track event: %s" % [res.json_result.error]) + print("Error sending track event, json_result error: %s" % [res.json_result.error]) else: - print("Error sending track event: %s" % [res]) + print("Error sending track event, other error: %s" % [res]) #1 is success from Mixpanel if (status == 1): if _PRINT_ANALYTICS: