|
@@ -116,7 +116,7 @@ public abstract class RpcProxyServer<TConnection> : IRpcProxyServer where TConne
|
|
|
var result = SendToServer<OpenSessionCommand, OpenSessionParameters, OpenSessionResult>(Guid.Empty, new OpenSessionParameters());
|
|
|
CreateSession(connection, result.SessionID);
|
|
|
|
|
|
- if (result.SessionID != Guid.Empty)
|
|
|
+ if (result.SessionID != Guid.Empty)
|
|
|
OnLog?.Invoke(LogType.Information, "", $"Client Connected [{result.SessionID}]");
|
|
|
}
|
|
|
catch(Exception e)
|
|
@@ -138,7 +138,7 @@ public abstract class RpcProxyServer<TConnection> : IRpcProxyServer where TConne
|
|
|
});
|
|
|
}
|
|
|
if (session != Guid.Empty)
|
|
|
- OnLog?.Invoke(LogType.Information, "", $"Client Disonnected [{session}]");
|
|
|
+ OnLog?.Invoke(LogType.Information, "", $"Client Disconnected [{session}]");
|
|
|
}
|
|
|
catch(Exception e)
|
|
|
{
|
|
@@ -150,7 +150,13 @@ public abstract class RpcProxyServer<TConnection> : IRpcProxyServer where TConne
|
|
|
{
|
|
|
var session = GetSession(connection);
|
|
|
if (session != Guid.Empty)
|
|
|
+ {
|
|
|
OnLog?.Invoke(LogType.Error, $"", $"Exception Occurred in {session}: {e.Message}");
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ OnLog?.Invoke(LogType.Error, $"", $"Exception Occurred: {CoreUtils.FormatException(e)}");
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/// <summary>
|