Skip to content

Commit b88f1b1

Browse files
committed
Add more debug statements.
1 parent 9d254bd commit b88f1b1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

eventsourcingdb/event/event.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ def verify_hash(self) -> None:
124124
final_hash.update(data_hash.encode("utf-8"))
125125
final_hash_hex = final_hash.hexdigest()
126126

127+
print("########### Final hash: ", final_hash_hex)
128+
print("########### Event hash: ", self.hash)
129+
127130
if final_hash_hex != self.hash:
128131
raise ValidationError("Failed to verify hash.")
129132

0 commit comments

Comments
 (0)