|
|
@@ -2,6 +2,7 @@ package com.uas.search.schedule;
|
|
|
|
|
|
import com.uas.search.annotation.NotEmpty;
|
|
|
import com.uas.search.util.CollectionUtils;
|
|
|
+import com.uas.search.util.ExceptionUtils;
|
|
|
import com.uas.search.util.StringUtils;
|
|
|
import java.io.File;
|
|
|
import java.io.FileWriter;
|
|
|
@@ -197,8 +198,7 @@ public class TaskServiceImpl implements TaskService {
|
|
|
String result = command.execute();
|
|
|
saveLog(new TaskLog(taskInformation, new Date(), result));
|
|
|
} catch (Throwable e) {
|
|
|
- saveLog(new TaskLog(taskInformation, new Date(),
|
|
|
- "定时任务出错" + ExceptionUtils.getDetailedMessage(e)));
|
|
|
+ saveLog(new TaskLog(taskInformation, new Date(), "定时任务出错" + ExceptionUtils.getDetailedMessage(e)));
|
|
|
}
|
|
|
}
|
|
|
};
|