|
@@ -113,7 +113,7 @@ public class AsyncExportServiceImpl implements AsyncExportService {
|
|
|
examRecords = ExamStudentEntityConvert.ofExcel(examStudentInfoList);
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
- LOG.error(e.getMessage());
|
|
|
+ LOG.error(e.getMessage(), e);
|
|
|
if (e instanceof StatusException) {
|
|
|
exportTaskService.updateExportTaskStatus(taskId, ExportTaskStatus.ERROR,
|
|
|
((StatusException) e).getDesc());
|
|
@@ -133,7 +133,7 @@ public class AsyncExportServiceImpl implements AsyncExportService {
|
|
|
tempFile.getParentFile().mkdirs();
|
|
|
tempFile.createNewFile();
|
|
|
} catch (IOException e) {
|
|
|
- LOG.error(e.getMessage());
|
|
|
+ LOG.error(e.getMessage(), e);
|
|
|
exportTaskService.updateExportTaskStatus(taskId, ExportTaskStatus.ERROR, "生成导出文件异常");
|
|
|
return;
|
|
|
}
|
|
@@ -190,7 +190,7 @@ public class AsyncExportServiceImpl implements AsyncExportService {
|
|
|
}
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
- LOG.error(e.getMessage());
|
|
|
+ LOG.error(e.getMessage(),e);
|
|
|
if (e instanceof StatusException) {
|
|
|
exportTaskService.updateExportTaskStatus(taskId, ExportTaskStatus.ERROR,
|
|
|
((StatusException) e).getDesc());
|
|
@@ -209,7 +209,7 @@ public class AsyncExportServiceImpl implements AsyncExportService {
|
|
|
tempFile.getParentFile().mkdirs();
|
|
|
tempFile.createNewFile();
|
|
|
} catch (IOException e) {
|
|
|
- LOG.error(e.getMessage());
|
|
|
+ LOG.error(e.getMessage(), e);
|
|
|
exportTaskService.updateExportTaskStatus(taskId, ExportTaskStatus.ERROR, "生成导出文件异常");
|
|
|
return;
|
|
|
}
|
|
@@ -263,7 +263,7 @@ public class AsyncExportServiceImpl implements AsyncExportService {
|
|
|
return;
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
- LOG.error(e.getMessage());
|
|
|
+ LOG.error(e.getMessage(), e);
|
|
|
if (e instanceof StatusException) {
|
|
|
exportTaskService.updateExportTaskStatus(taskId, ExportTaskStatus.ERROR,
|
|
|
((StatusException) e).getDesc());
|
|
@@ -282,7 +282,7 @@ public class AsyncExportServiceImpl implements AsyncExportService {
|
|
|
tempFile.getParentFile().mkdirs();
|
|
|
tempFile.createNewFile();
|
|
|
} catch (IOException e) {
|
|
|
- LOG.error(e.getMessage());
|
|
|
+ LOG.error(e.getMessage(), e);
|
|
|
exportTaskService.updateExportTaskStatus(taskId, ExportTaskStatus.ERROR, "生成导出文件异常");
|
|
|
return;
|
|
|
}
|
|
@@ -321,7 +321,7 @@ public class AsyncExportServiceImpl implements AsyncExportService {
|
|
|
}
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
- LOG.error(e.getMessage());
|
|
|
+ LOG.error(e.getMessage(), e);
|
|
|
if (e instanceof StatusException) {
|
|
|
exportTaskService.updateExportTaskStatus(taskId, ExportTaskStatus.ERROR,
|
|
|
((StatusException) e).getDesc());
|
|
@@ -340,7 +340,7 @@ public class AsyncExportServiceImpl implements AsyncExportService {
|
|
|
tempFile.getParentFile().mkdirs();
|
|
|
tempFile.createNewFile();
|
|
|
} catch (IOException e) {
|
|
|
- LOG.error(e.getMessage());
|
|
|
+ LOG.error(e.getMessage(), e);
|
|
|
exportTaskService.updateExportTaskStatus(taskId, ExportTaskStatus.ERROR, "生成导出文件异常");
|
|
|
return;
|
|
|
}
|