Skip to content

Commit a663d63

Browse files
committed
Tag LAN networking logs
1 parent d0b1ed3 commit a663d63

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

Basis/Packages/com.basis.framework/Networking/BasisConnectionService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ internal static bool TryHandleLanAuthenticationRejected()
115115
}
116116
catch (Exception ex)
117117
{
118-
BasisDebug.LogError($"LanPasswordRequired handler threw: {ex.Message}");
118+
BasisDebug.LogError($"LanPasswordRequired handler threw: {ex.Message}", BasisDebug.LogTag.Networking);
119119
return false;
120120
}
121121
}

Basis/Packages/com.basis.framework/Networking/BasisNetworkEvents.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,7 @@ public static void HandleDisconnectionReason(DisconnectInfo disconnectInfo)
962962
&& string.Equals(reason, BasisNetworkCommons.AuthenticationRejectedReason, StringComparison.Ordinal)
963963
&& BasisConnectionService.TryHandleLanAuthenticationRejected())
964964
{
965-
BasisDebug.LogWarning("LAN server rejected authentication; requesting a password from the user.");
965+
BasisDebug.LogWarning("LAN server rejected authentication; requesting a password from the user.", BasisDebug.LogTag.Networking);
966966
return;
967967
}
968968
title = rejected ? "Connection Rejected" : "Server Disconnected";

Basis/Packages/com.basis.framework/Networking/LanServersDirectorySource.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ private void StartListening()
134134
}
135135
catch (Exception ex)
136136
{
137-
BasisDebug.LogWarning($"LAN DNS-SD discovery could not start: {ex.Message}");
137+
BasisDebug.LogWarning($"LAN DNS-SD discovery could not start: {ex.Message}", BasisDebug.LogTag.Networking);
138138
ReleaseAndroidMulticastLock();
139139
}
140140
}
@@ -156,7 +156,7 @@ private void AcquireAndroidMulticastLock()
156156
{
157157
_androidMulticastLock?.Dispose();
158158
_androidMulticastLock = null;
159-
BasisDebug.LogWarning($"Could not acquire Android LAN discovery multicast lock: {ex.Message}");
159+
BasisDebug.LogWarning($"Could not acquire Android LAN discovery multicast lock: {ex.Message}", BasisDebug.LogTag.Networking);
160160
}
161161
#endif
162162
}
@@ -178,7 +178,7 @@ private void ReleaseAndroidMulticastLock()
178178
}
179179
catch (Exception ex)
180180
{
181-
BasisDebug.LogWarning($"Could not release Android LAN discovery multicast lock: {ex.Message}");
181+
BasisDebug.LogWarning($"Could not release Android LAN discovery multicast lock: {ex.Message}", BasisDebug.LogTag.Networking);
182182
}
183183
finally
184184
{
@@ -392,7 +392,7 @@ private void QueueSourceChanged()
392392
}
393393

394394
try { SourceChanged?.Invoke(); }
395-
catch (Exception ex) { BasisDebug.LogError($"LanServersDirectorySource.SourceChanged threw: {ex.Message}"); }
395+
catch (Exception ex) { BasisDebug.LogError($"LanServersDirectorySource.SourceChanged threw: {ex.Message}", BasisDebug.LogTag.Networking); }
396396
});
397397
}
398398

@@ -407,7 +407,7 @@ public void Dispose()
407407
try { _cancellation.Cancel(); }
408408
catch (ObjectDisposedException) { }
409409
try { _browser?.Dispose(); }
410-
catch (Exception ex) { BasisDebug.LogWarning($"LAN DNS-SD discovery shutdown failed: {ex.Message}"); }
410+
catch (Exception ex) { BasisDebug.LogWarning($"LAN DNS-SD discovery shutdown failed: {ex.Message}", BasisDebug.LogTag.Networking); }
411411
_browser = null;
412412
ReleaseAndroidMulticastLock();
413413
_cancellation.Dispose();

0 commit comments

Comments
 (0)