diff --git a/shadowsocks-csharp/Controller/AutoStartup.cs b/shadowsocks-csharp/Controller/AutoStartup.cs index cc7e0b2..b040445 100644 --- a/shadowsocks-csharp/Controller/AutoStartup.cs +++ b/shadowsocks-csharp/Controller/AutoStartup.cs @@ -15,7 +15,8 @@ namespace Shadowsocks.Controller { } runKey.Close(); return true; - } catch (Exception) { + } catch (Exception e) { + Logging.LogUsefulException(e); return false; } } @@ -30,8 +31,11 @@ namespace Shadowsocks.Controller { if (item.Equals("Shadowsocks")) return true; } - return false; - } catch (Exception) { + return false; + } + catch (Exception e) + { + Logging.LogUsefulException(e); return false; } }