Improved logging

This commit is contained in:
CalDescent 2022-04-16 20:50:00 +01:00
parent 8d1a58ec06
commit 3d99f86630

View File

@ -96,7 +96,7 @@ public class ArbitraryDataFile {
this.filePath = outputFilePath; this.filePath = outputFilePath;
// Verify hash // Verify hash
if (!this.hash58.equals(this.digest58())) { if (!this.hash58.equals(this.digest58())) {
LOGGER.error("Hash {} does not match file digest {}", this.hash58, this.digest58()); LOGGER.error("Hash {} does not match file digest {} for signature: {}", this.hash58, this.digest58(), Base58.encode(signature));
this.delete(); this.delete();
throw new DataException("Data file digest validation failed"); throw new DataException("Data file digest validation failed");
} }