Browse Source

减少定时任务执行的日志

sunyj 8 years ago
parent
commit
fe29d9c285

+ 0 - 2
src/main/java/com/uas/search/schedule/service/impl/TaskServiceImpl.java

@@ -116,7 +116,6 @@ public class TaskServiceImpl implements TaskService {
 			fileWriter = new FileWriter(logFilePath, true);
 			fileWriter.write(log.toJSONString() + "\n");
 			fileWriter.flush();
-			logger.info("Saved task log:" + log.toJSONString() + " to " + logFilePath + "\n");
 		} catch (IOException e) {
 			logger.error("", e);
 		} finally {
@@ -172,7 +171,6 @@ public class TaskServiceImpl implements TaskService {
 			@Override
 			public void run() {
 				try {
-					logger.info("Task run...");
 					Executable command = taskInformation.getCommand();
 					String result = command.execute();
 					saveLog(new TaskLog(taskInformation, new Date(), result));