File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -59,9 +59,9 @@ private static bool CheckLogonTask()
5959
6060 return true ;
6161 }
62- catch ( Exception )
62+ catch ( Exception e )
6363 {
64- Log . Error ( "AutoStartup" , "Failed to check logon task" ) ;
64+ Log . Error ( "AutoStartup" , $ "Failed to check logon task: { e } ") ;
6565 }
6666 }
6767
@@ -159,9 +159,9 @@ private static bool ScheduleLogonTask()
159159 TaskService . Instance . RootFolder . RegisterTaskDefinition ( LogonTaskName , td ) ;
160160 return true ;
161161 }
162- catch ( Exception )
162+ catch ( Exception e )
163163 {
164- Log . Error ( "AutoStartup" , "Failed to schedule logon task" ) ;
164+ Log . Error ( "AutoStartup" , $ "Failed to schedule logon task: { e } ") ;
165165 return false ;
166166 }
167167 }
@@ -174,9 +174,9 @@ private static bool UnscheduleLogonTask()
174174 taskService . RootFolder . DeleteTask ( LogonTaskName ) ;
175175 return true ;
176176 }
177- catch ( Exception )
177+ catch ( Exception e )
178178 {
179- Log . Error ( "AutoStartup" , "Failed to unschedule logon task" ) ;
179+ Log . Error ( "AutoStartup" , $ "Failed to unschedule logon task: { e } ") ;
180180 return false ;
181181 }
182182 }
You can’t perform that action at this time.
0 commit comments