diff --git a/src/main/java/com/instaclustr/esop/impl/hash/HashServiceImpl.java b/src/main/java/com/instaclustr/esop/impl/hash/HashServiceImpl.java index 7c35bb8..1606712 100644 --- a/src/main/java/com/instaclustr/esop/impl/hash/HashServiceImpl.java +++ b/src/main/java/com/instaclustr/esop/impl/hash/HashServiceImpl.java @@ -9,12 +9,17 @@ import javax.inject.Inject; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + import com.instaclustr.esop.impl.ManifestEntry; import static java.lang.String.format; public class HashServiceImpl implements HashService { + private static final Logger logger = LoggerFactory.getLogger(HashServiceImpl.class); + private final HashSpec hashSpec; @Inject @@ -79,7 +84,7 @@ public void verify(final Path path, final String expectedHash) throws HashVerifi private String getHash(final File file) throws IOException, NoSuchAlgorithmException { try (final FileInputStream fis = new FileInputStream(file)) { - + logger.info("Getting {} hash of {} ", hashSpec.algorithm.toString(), file.getAbsolutePath()); final MessageDigest digest = MessageDigest.getInstance(hashSpec.algorithm.toString()); // Create byte array to read data in chunks