From 46b3ab5da89cefd0cc8b8744e63215fb67dc339e Mon Sep 17 00:00:00 2001 From: Kevin Darby Date: Tue, 25 Feb 2020 16:23:16 -0500 Subject: [PATCH] logging for stunnel check --- src/client/spark/App.xaml.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/client/spark/App.xaml.cs b/src/client/spark/App.xaml.cs index 0fb890783..8f59034c0 100644 --- a/src/client/spark/App.xaml.cs +++ b/src/client/spark/App.xaml.cs @@ -116,6 +116,7 @@ namespace mbts.ui.shell try { string path = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\BTS\\stunnel\\"; + Log.Ui.info($"Looking for stunnel in {path}"); if (File.Exists(path + "config\\stunnel.conf")) { uint job_error = BTSUINativeMethods.setup_process_job_object(); @@ -124,7 +125,8 @@ namespace mbts.ui.shell kill_stunnel(); start_stunnel(path, job_error); } - path = AppDomain.CurrentDomain.BaseDirectory + "\\..\\stunnel\\"; + path = new DirectoryInfo( AppDomain.CurrentDomain.BaseDirectory ).FullName + "\\stunnel\\"; + Log.Ui.info($"Looking for stunnel in {path}"); if (File.Exists(path + "config\\stunnel.conf")) { uint job_error = BTSUINativeMethods.setup_process_job_object();