Logging for SIP003 start failure.

This commit is contained in:
Raif Atef
2017-08-26 21:22:53 +02:00
parent cf5de91acb
commit a316b95f45
@@ -158,10 +158,18 @@ namespace Shadowsocks.Controller
return null;
}
if (plugin.StartIfNeeded())
try
{
Logging.Info(
$"Started SIP003 plugin for {server.Identifier()} on {plugin.LocalEndPoint} - PID: {plugin.ProcessId}");
if (plugin.StartIfNeeded())
{
Logging.Info(
$"Started SIP003 plugin for {server.Identifier()} on {plugin.LocalEndPoint} - PID: {plugin.ProcessId}");
}
}
catch (Exception ex)
{
Logging.Error("Failed to start SIP003 plugin: " + ex.Message);
throw;
}
return plugin.LocalEndPoint;