From 20d1d2ceec6ef6b71eb6e6a097d7874c389018c2 Mon Sep 17 00:00:00 2001 From: Lacyway <20912169+Lacyway@users.noreply.github.com> Date: Mon, 13 May 2024 22:54:14 +0200 Subject: [PATCH] More logging --- Fika.Core/UI/Custom/MatchMakerUIScript.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Fika.Core/UI/Custom/MatchMakerUIScript.cs b/Fika.Core/UI/Custom/MatchMakerUIScript.cs index e8989ec5..67e837d9 100644 --- a/Fika.Core/UI/Custom/MatchMakerUIScript.cs +++ b/Fika.Core/UI/Custom/MatchMakerUIScript.cs @@ -187,7 +187,7 @@ private IEnumerator JoinMatch(string profileId, string serverId, Button button) button.enabled = false; } - NotificationManagerClass.DisplayMessageNotification("Connecting to server...", iconType: EFT.Communications.ENotificationIconType.EntryPoint); + NotificationManagerClass.DisplayMessageNotification("Connecting to session...", iconType: EFT.Communications.ENotificationIconType.EntryPoint); FikaPingingClient pingingClient = new(serverId); if (pingingClient.Init()) @@ -195,6 +195,8 @@ private IEnumerator JoinMatch(string profileId, string serverId, Button button) int attempts = 0; bool success; + FikaPlugin.Instance.FikaLogger.LogInfo("Attempting to connect to host session..."); + do { attempts++; @@ -213,6 +215,8 @@ private IEnumerator JoinMatch(string profileId, string serverId, Button button) "Unable to connect to the server. Make sure that all ports are open and that all settings are configured correctly.", ErrorScreen.EButtonType.OkButton, 10f, null, null); + FikaPlugin.Instance.FikaLogger.LogError("Unable to connect to the session!"); + if (button != null) { button.enabled = true;