log a little better

This commit is contained in:
JohnCorby 2025-02-24 15:21:35 -08:00
parent 4f048e9476
commit 06e938fc62
2 changed files with 8 additions and 4 deletions

View File

@ -18,7 +18,9 @@ public class Client
{ {
_transport.Log($"STATUS CHANGED for {t.m_info.m_szConnectionDescription}\n" + _transport.Log($"STATUS CHANGED for {t.m_info.m_szConnectionDescription}\n" +
$" state = {t.m_info.m_eState}\n" + $" state = {t.m_info.m_eState}\n" +
$"end = {(ESteamNetConnectionEnd)t.m_info.m_eEndReason} {t.m_info.m_szEndDebug}\n"); $" end = {(ESteamNetConnectionEnd)t.m_info.m_eEndReason} {t.m_info.m_szEndDebug}");
// SteamNetworkingSockets.GetDetailedConnectionStatus(t.m_hConn, out var status, 1000);
// _transport.Log(status);
switch (t.m_info.m_eState) switch (t.m_info.m_eState)
{ {

View File

@ -19,7 +19,9 @@ public class Server
{ {
_transport.Log($"STATUS CHANGED for {t.m_info.m_szConnectionDescription}\n" + _transport.Log($"STATUS CHANGED for {t.m_info.m_szConnectionDescription}\n" +
$" state = {t.m_info.m_eState}\n" + $" state = {t.m_info.m_eState}\n" +
$"end = {(ESteamNetConnectionEnd)t.m_info.m_eEndReason} {t.m_info.m_szEndDebug}\n"); $" end = {(ESteamNetConnectionEnd)t.m_info.m_eEndReason} {t.m_info.m_szEndDebug}");
// SteamNetworkingSockets.GetDetailedConnectionStatus(t.m_hConn, out var status, 1000);
// _transport.Log(status);
switch (t.m_info.m_eState) switch (t.m_info.m_eState)
{ {