From 2b70ab18a97dd248d478d985ae602bd7e3a9d320 Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Fri, 28 Nov 2014 11:04:46 +0100 Subject: Logging Error Levels adapted --- pdf-as-moa/src/main/java/at/gv/egiz/pdfas/moa/MOAConnector.java | 4 ++-- pdf-as-moa/src/main/java/at/gv/egiz/pdfas/moa/MOAVerifier.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'pdf-as-moa/src/main/java/at/gv/egiz/pdfas/moa') diff --git a/pdf-as-moa/src/main/java/at/gv/egiz/pdfas/moa/MOAConnector.java b/pdf-as-moa/src/main/java/at/gv/egiz/pdfas/moa/MOAConnector.java index 212e4116..5f3d9cb8 100644 --- a/pdf-as-moa/src/main/java/at/gv/egiz/pdfas/moa/MOAConnector.java +++ b/pdf-as-moa/src/main/java/at/gv/egiz/pdfas/moa/MOAConnector.java @@ -131,7 +131,7 @@ public class MOAConnector implements ISignatureConnector, this.certificate = new X509Certificate( certificateURL.openStream()); } catch (MalformedURLException e) { - logger.error(certificateValue + " is not a valid url but!"); + logger.error(certificateValue + " is not a valid url but starts with http!"); throw new PdfAsWrappedIOException(new PdfAsException( certificateValue + " is not a valid url but!")); } @@ -210,7 +210,7 @@ public class MOAConnector implements ISignatureConnector, try { response = creationPort.createCMSSignature(request); } catch (MOAFault e) { - logger.error("MOA signing failed!", e); + logger.warn("MOA signing failed!", e); if (e.getFaultInfo() != null) { throw new PdfAsMOAException(e.getFaultInfo().getErrorCode() .toString(), e.getFaultInfo().getInfo(), "", ""); diff --git a/pdf-as-moa/src/main/java/at/gv/egiz/pdfas/moa/MOAVerifier.java b/pdf-as-moa/src/main/java/at/gv/egiz/pdfas/moa/MOAVerifier.java index 45f9a223..1dc63e0b 100644 --- a/pdf-as-moa/src/main/java/at/gv/egiz/pdfas/moa/MOAVerifier.java +++ b/pdf-as-moa/src/main/java/at/gv/egiz/pdfas/moa/MOAVerifier.java @@ -177,7 +177,7 @@ public class MOAVerifier implements IVerifier { } resultList.add(result); } catch (Throwable e) { - logger.error("Verification failed", e); + logger.warn("Verification failed", e); throw new PdfAsException("error.pdf.verify.02", e); } return resultList; -- cgit v1.2.3