Logger and minor changes

This commit is contained in:
seerge
2023-03-13 18:33:27 +01:00
parent a7e8ba3241
commit f0abe22b5d
6 changed files with 41 additions and 19 deletions

View File

@@ -29,6 +29,7 @@ public class Startup
td.Settings.StopIfGoingOnBatteries = false;
td.Settings.DisallowStartIfOnBatteries = false;
td.Settings.ExecutionTimeLimit = TimeSpan.Zero;
Debug.WriteLine(strExeFilePath);
Debug.WriteLine(userId);
@@ -36,9 +37,9 @@ public class Startup
try
{
TaskService.Instance.RootFolder.RegisterTaskDefinition(taskName, td);
} catch
} catch (Exception e)
{
MessageBox.Show("Can't schedule task", "Scheduler Error", MessageBoxButtons.OK);
MessageBox.Show(e.ToString(), "Scheduler Error", MessageBoxButtons.OK);
}
}