mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 09:43:15 +00:00
失敗したときにログを削除してリカバリするように
This commit is contained in:
parent
113bca723f
commit
6b3d0c0dae
|
@ -76,6 +76,7 @@ public class DocumentProcessorImpl implements DocumentProcessor{
|
||||||
|
|
||||||
lacertaVcs.insertPage(this.documentDetail.getPages().size(), filename);
|
lacertaVcs.insertPage(this.documentDetail.getPages().size(), filename);
|
||||||
|
|
||||||
|
try {
|
||||||
Page page = new Page();
|
Page page = new Page();
|
||||||
page.setFileName(filename);
|
page.setFileName(filename);
|
||||||
page.setBitmap(bitmap);
|
page.setBitmap(bitmap);
|
||||||
|
@ -85,7 +86,12 @@ public class DocumentProcessorImpl implements DocumentProcessor{
|
||||||
|
|
||||||
logger.info("addNewPageToLast", "finished");
|
logger.info("addNewPageToLast", "finished");
|
||||||
logger.info("addNewPageToLast", "filename: " + filename);
|
logger.info("addNewPageToLast", "filename: " + filename);
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.error("addNewPageToLast", "failed: Unknown error");
|
||||||
|
logger.e_code("d9191286-6092-40b3-80ed-9239106a8c65");
|
||||||
|
// Recover (Undo latest action)
|
||||||
|
lacertaVcs.undo();
|
||||||
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user