aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-moa/src/main/java/at/gv/egiz/pdfas
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-11-28 11:04:46 +0100
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-11-28 11:04:46 +0100
commit2b70ab18a97dd248d478d985ae602bd7e3a9d320 (patch)
tree32ec7e5d1b327f4b356f404d55d071c444a06a2e /pdf-as-moa/src/main/java/at/gv/egiz/pdfas
parent48f8e5362fa6c7b2f0a708e2dd61cac1dd366397 (diff)
downloadpdf-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-moa/src/main/java/at/gv/egiz/pdfas')
-rw-r--r--pdf-as-moa/src/main/java/at/gv/egiz/pdfas/moa/MOAConnector.java4
-rw-r--r--pdf-as-moa/src/main/java/at/gv/egiz/pdfas/moa/MOAVerifier.java2
2 files changed, 3 insertions, 3 deletions
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;