Browse Source

Merge pull request #308 from icylogic/master

Add more clear log for exceptions occured in ICMP tests
tags/2.5.7
icylogic 9 years ago
parent
commit
0f72ba1e48
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      shadowsocks-csharp/Controller/Service/AvailabilityStatistics.cs

+ 3
- 2
shadowsocks-csharp/Controller/Service/AvailabilityStatistics.cs View File

@@ -6,8 +6,8 @@ using System.Net.NetworkInformation;
using System.Threading; using System.Threading;
using Shadowsocks.Model; using Shadowsocks.Model;
using System.Reflection; using System.Reflection;
using Shadowsocks.Util;
using Shadowsocks.Util;
namespace Shadowsocks.Controller namespace Shadowsocks.Controller
{ {
class AvailabilityStatistics class AvailabilityStatistics
@@ -81,6 +81,7 @@ namespace Shadowsocks.Controller
} }
catch (Exception e) catch (Exception e)
{ {
Console.WriteLine($"An exception occured when eveluating {server.FriendlyName()}");
Logging.LogUsefulException(e); Logging.LogUsefulException(e);
} }
} }


Loading…
Cancel
Save