Browse Source

无jira任务 加一下日志

feature/big-screen
Bryant 5 years ago
parent
commit
bf415b4b13
  1. 2
      designer-base/src/main/java/com/fr/design/update/actions/RecoverForDesigner.java

2
designer-base/src/main/java/com/fr/design/update/actions/RecoverForDesigner.java

@ -30,6 +30,7 @@ public class RecoverForDesigner implements Recover {
CommonIOUtils.copyFilesInDirByPath(StableUtils.pathJoin(installHome, ProjectConstants.LOGS_NAME,
UpdateConstants.INSTALL_LIB, UpdateConstants.DESIGNERBACKUPPATH),
StableUtils.pathJoin(StableUtils.getInstallHome(), ProjectConstants.LIB_NAME));
FineLoggerFactory.getLogger().error("Recover down for designer");
return true;
} catch (IOException e) {
FineLoggerFactory.getLogger().error("Recover error for designer", e);
@ -54,6 +55,7 @@ public class RecoverForDesigner implements Recover {
CommonIOUtils.copyFilesInDirByPath(StableUtils.pathJoin(installHome,ProjectConstants.LIB_NAME),
StableUtils.pathJoin(installBackup,UpdateConstants.DESIGNERBACKUPPATH));
DesignerContext.getDesignerFrame().prepareForExit();
FineLoggerFactory.getLogger().error("Backup down for designer");
return true;
} catch (IOException e) {
UpdateException exception = new UpdateException("Backup Exception for designer" + e.getMessage());

Loading…
Cancel
Save