diff options
Diffstat (limited to 'src/main/java/at/gv/egiz/pdfas/impl/input')
3 files changed, 4 insertions, 7 deletions
diff --git a/src/main/java/at/gv/egiz/pdfas/impl/input/FileBasedPdfDataSourceImpl.java b/src/main/java/at/gv/egiz/pdfas/impl/input/FileBasedPdfDataSourceImpl.java index a3a0803..57e572f 100644 --- a/src/main/java/at/gv/egiz/pdfas/impl/input/FileBasedPdfDataSourceImpl.java +++ b/src/main/java/at/gv/egiz/pdfas/impl/input/FileBasedPdfDataSourceImpl.java @@ -97,8 +97,7 @@ public class FileBasedPdfDataSourceImpl implements PdfDataSource, FileBased }
catch (IOException e)
{
- log.error("Couldn't create InputStream for file " + getFile() + ". Returning null.");
- log.error(e);
+ log.error("Couldn't create InputStream for file " + getFile() + ". Returning null.", e);
return null;
}
diff --git a/src/main/java/at/gv/egiz/pdfas/impl/input/FileBasedTextDataSourceImpl.java b/src/main/java/at/gv/egiz/pdfas/impl/input/FileBasedTextDataSourceImpl.java index 1988519..6e0f50b 100644 --- a/src/main/java/at/gv/egiz/pdfas/impl/input/FileBasedTextDataSourceImpl.java +++ b/src/main/java/at/gv/egiz/pdfas/impl/input/FileBasedTextDataSourceImpl.java @@ -88,8 +88,7 @@ public class FileBasedTextDataSourceImpl implements TextDataSource, FileBased }
catch (IOException e)
{
- log.error("Couldn't read text for file " + getFile() + ". Returning null.");
- log.error(e);
+ log.error("Couldn't read text for file " + getFile() + ". Returning null.", e);
return null;
}
@@ -107,8 +106,7 @@ public class FileBasedTextDataSourceImpl implements TextDataSource, FileBased }
catch (IOException e)
{
- log.error("Couldn't create InputStream for file " + getFile() + ". Returning null.");
- log.error(e);
+ log.error("Couldn't create InputStream for file " + getFile() + ". Returning null.", e);
return null;
}
diff --git a/src/main/java/at/gv/egiz/pdfas/impl/input/correction/ExternalCorrector.java b/src/main/java/at/gv/egiz/pdfas/impl/input/correction/ExternalCorrector.java index e244746..25df6a8 100644 --- a/src/main/java/at/gv/egiz/pdfas/impl/input/correction/ExternalCorrector.java +++ b/src/main/java/at/gv/egiz/pdfas/impl/input/correction/ExternalCorrector.java @@ -202,7 +202,7 @@ public class ExternalCorrector implements Corrector }
catch (IOException e)
{
- log.error(e);
+ log.error(e.getMessage(), e);
}
}
}
|