diff options
author | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2014-11-28 11:04:46 +0100 |
---|---|---|
committer | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2014-11-28 11:04:46 +0100 |
commit | 2b70ab18a97dd248d478d985ae602bd7e3a9d320 (patch) | |
tree | 32ec7e5d1b327f4b356f404d55d071c444a06a2e /pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper | |
parent | 48f8e5362fa6c7b2f0a708e2dd61cac1dd366397 (diff) | |
download | pdf-as-4-2b70ab18a97dd248d478d985ae602bd7e3a9d320.tar.gz pdf-as-4-2b70ab18a97dd248d478d985ae602bd7e3a9d320.tar.bz2 pdf-as-4-2b70ab18a97dd248d478d985ae602bd7e3a9d320.zip |
Logging Error Levels adapted
Diffstat (limited to 'pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper')
-rw-r--r-- | pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/PdfAsHelper.java | 6 | ||||
-rw-r--r-- | pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/RemotePDFFetcher.java | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/PdfAsHelper.java b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/PdfAsHelper.java index 53085ca2..7f900b0f 100644 --- a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/PdfAsHelper.java +++ b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/PdfAsHelper.java @@ -293,7 +293,7 @@ public class PdfAsHelper { try { signIdx = Integer.parseInt(signidxString); } catch (Throwable e) { - logger.error("Failed to parse Signature Index: " + logger.warn("Failed to parse Signature Index: " + signidxString); } } @@ -1097,12 +1097,12 @@ public class PdfAsHelper { if (obj != null) { try { if (!(obj instanceof List<?>)) { - logger.error("Invalid object type"); + logger.warn("Invalid object type"); return null; } return (List<VerifyResult>) obj; } catch (Throwable e) { - logger.error("Invalid object type"); + logger.warn("Invalid object type"); } } return null; diff --git a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/RemotePDFFetcher.java b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/RemotePDFFetcher.java index f3c1c946..462c1bc8 100644 --- a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/RemotePDFFetcher.java +++ b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/RemotePDFFetcher.java @@ -44,7 +44,7 @@ public class RemotePDFFetcher { try { url = new URL(pdfURL); } catch (MalformedURLException e) { - logger.error("Not a valid URL!", e); + logger.warn("Not a valid URL!", e); throw new PdfAsWebException("Not a valid URL!", e); } if (WebConfiguration.isProvidePdfURLinWhitelist(url.toExternalForm())) { @@ -55,7 +55,7 @@ public class RemotePDFFetcher { InputStream is = url.openStream(); return StreamUtils.inputStreamToByteArray(is); } catch (Exception e) { - logger.error("Failed to fetch pdf document!", e); + logger.warn("Failed to fetch pdf document!", e); throw new PdfAsWebException( "Failed to fetch pdf document!", e); } |