Skip to content

Commit

Permalink
Logging for SIP003 start failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
rwasef1830 committed Aug 26, 2017
1 parent cf5de91 commit a316b95
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions shadowsocks-csharp/Controller/ShadowsocksController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,18 @@ public EndPoint GetPluginLocalEndPointIfConfigured(Server server)
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;
Expand Down

0 comments on commit a316b95

Please sign in to comment.