From 17ca0eee124f6aed0837a938b3bfd4ca60fe5d0e Mon Sep 17 00:00:00 2001 From: Emina Ahmetovic Date: Mon, 2 Nov 2020 16:18:55 +0100 Subject: Code cleanup --- pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/PdfAsImpl.java | 6 ++---- pdf-as-lib/src/main/java/at/gv/egiz/sl/util/BKUSLConnector.java | 4 ---- pdf-as-lib/src/main/java/at/gv/egiz/sl/util/BaseSLConnector.java | 2 +- 3 files changed, 3 insertions(+), 9 deletions(-) (limited to 'pdf-as-lib/src') diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/PdfAsImpl.java b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/PdfAsImpl.java index 57a89df0..324712cb 100644 --- a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/PdfAsImpl.java +++ b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/PdfAsImpl.java @@ -72,7 +72,7 @@ public class PdfAsImpl implements PdfAs, IConfigurationConstants, private ISettings settings; public PdfAsImpl(File cfgFile) { - logger.trace("Initializing PDF-AS with config: " + cfgFile.getPath()); + logger.debug("Initializing PDF-AS with config: " + cfgFile.getPath()); this.settings = new Settings(cfgFile); } @@ -369,9 +369,7 @@ public class PdfAsImpl implements PdfAs, IConfigurationConstants, for (int i = 0; i < byteRange.length; i++) { sb.append(" " + byteRange[i]); } - - logger.trace("ByteRange: " + sb.toString()); - + logger.debug("ByteRange: " + sb.toString()); request.setSignatureData(signatureDataExtractor .getSignatureData()); diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/sl/util/BKUSLConnector.java b/pdf-as-lib/src/main/java/at/gv/egiz/sl/util/BKUSLConnector.java index 4a32390b..2e5c972f 100644 --- a/pdf-as-lib/src/main/java/at/gv/egiz/sl/util/BKUSLConnector.java +++ b/pdf-as-lib/src/main/java/at/gv/egiz/sl/util/BKUSLConnector.java @@ -170,17 +170,13 @@ public class BKUSLConnector extends BaseSLConnector { } holder.getProcessInfo().add(hdr); - } - } BKUHeader hdr = new BKUHeader( ErrorConstants.STATUS_INFO_SIGDEVICE, SIGNATURE_DEVICE); logger.debug("Response Header : {}", hdr.toString()); - holder.getProcessInfo().add(hdr); - } BufferedReader rd = new BufferedReader(new InputStreamReader( diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/sl/util/BaseSLConnector.java b/pdf-as-lib/src/main/java/at/gv/egiz/sl/util/BaseSLConnector.java index 46857249..2744276e 100644 --- a/pdf-as-lib/src/main/java/at/gv/egiz/sl/util/BaseSLConnector.java +++ b/pdf-as-lib/src/main/java/at/gv/egiz/sl/util/BaseSLConnector.java @@ -97,7 +97,7 @@ public abstract class BaseSLConnector implements ISLConnector, byte[] data = PDFUtils.blackOutSignature(signatureData, byteRange); RequestPackage pack = new RequestPackage(); int[] exclude_range = PDFUtils.buildExcludeRange(byteRange); - logger.info("Exclude Byte Range: " + exclude_range[0] + " " + logger.debug("Exclude Byte Range: " + exclude_range[0] + " " + exclude_range[1]); MetaInfoType metaInfoType = new MetaInfoType(); -- cgit v1.2.3