Skip to content

Commit

Permalink
update logs (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kluskey authored May 9, 2024
1 parent df8e68e commit f933f68
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mirror-godot-app/scripts/autoload/analytics/analytics_v2.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f933f68

Please sign in to comment.