Skip to content

Commit

Permalink
Improve print messages
Browse files Browse the repository at this point in the history
  • Loading branch information
RevoluPowered committed Mar 21, 2024
1 parent c973749 commit 10417e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
7 changes: 4 additions & 3 deletions mirror-godot-app/scripts/autoload/deeplinking.gd
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ func _process(_delta: float) -> void:
return
for deeplink in _cached_deeplinks:
var url = String(deeplink) # ensure to deep copy string from thread data
print("Processing deeplink: ", url)
get_window().request_attention()
# neither of these work for making the app focus the window to the top on the OS
#get_window().grab_focus()
Expand All @@ -41,7 +40,9 @@ func _process(_delta: float) -> void:
if not Net.is_logged_in() and command != _JOIN_AUTHED_SPACE_CMD:
Notify.warning("Sign In", "You must sign in to use the link provided, once you sign in I will open the link.")
GameUI.login_ui.login_succeeded.connect(func(): _handle_deeplink_url(url), CONNECT_ONE_SHOT)
print("Processing login...")
else:
print("Processing deeplink: ", url)
_process_command(command, args)
_deeplink_mutex.lock()
_cached_deeplinks.clear()
Expand Down Expand Up @@ -135,8 +136,8 @@ func _process_command(command: String, args: Array) -> void:
var access_token: String = args[0]
var refresh_token: String = args[1]
var space_id: String = args[2]
print_verbose("access token: ", access_token)
print_verbose("refresh token: ", refresh_token)
print_verbose("[SECRET] access token: ", access_token)
print_verbose("[SECRET] refresh token: ", refresh_token)
print_verbose("space id: ", space_id)
join_authed_space.emit(access_token, refresh_token, space_id)
_: Notify.error("Invalid link", "Command is not registered in this version of the application")
3 changes: 0 additions & 3 deletions mirror-godot-app/scripts/net/zone_socket.gd
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,6 @@ func _get_ws_url() -> String:
## Initializes the websocket connection to the Mirror API.
func init_ws_client() -> void:
assert(Zone.is_host())


_next_reconnect_time = 0
_zone_server_uuid = Util.get_commandline_id_val("uuid")
_ws_client = WebSocketClient.new()
Expand All @@ -107,7 +105,6 @@ func init_ws_client() -> void:
"space: %s" % Zone.server.space_id,
"zone: %s" % _zone_server_uuid
]
print("WS header: ", headers)
print("connecting ws to %s" % url)
_ws_client.handshake_headers = headers
_ws_client.tls_verify = false
Expand Down

0 comments on commit 10417e2

Please sign in to comment.