Browse Source

Logging for SIP003 start failure.

tags/4.0.6
Raif Atef 8 years ago
parent
commit
a316b95f45
1 changed files with 11 additions and 3 deletions
  1. +11
    -3
      shadowsocks-csharp/Controller/ShadowsocksController.cs

+ 11
- 3
shadowsocks-csharp/Controller/ShadowsocksController.cs View File

@@ -158,10 +158,18 @@ namespace Shadowsocks.Controller
return null;
}
if (plugin.StartIfNeeded())
try
{
if (plugin.StartIfNeeded())
{
Logging.Info(
$"Started SIP003 plugin for {server.Identifier()} on {plugin.LocalEndPoint} - PID: {plugin.ProcessId}");
}
}
catch (Exception ex)
{
Logging.Info(
$"Started SIP003 plugin for {server.Identifier()} on {plugin.LocalEndPoint} - PID: {plugin.ProcessId}");
Logging.Error("Failed to start SIP003 plugin: " + ex.Message);
throw;
}
return plugin.LocalEndPoint;


Loading…
Cancel
Save