|
|
@@ -153,7 +153,7 @@ public class TaskServiceImpl implements TaskService {
|
|
|
Executable command = taskInformation.getCommand();
|
|
|
String result = command.execute();
|
|
|
saveLog(new TaskLog(taskInformation, new Date(), result));
|
|
|
- } catch (Exception e) {
|
|
|
+ } catch (Throwable e) {
|
|
|
saveLog(new TaskLog(taskInformation, new Date(),
|
|
|
"定时任务出错" + new SearchException(e).getDetailedMessage(e)));
|
|
|
}
|