Skip to content

Commit 9f36c54

Browse files
committed
Debug timestamp.
1 parent ec1057e commit 9f36c54

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

infra/lib/infra/event_store.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ class << default_mapper_instance
8080
alias_method :original_event_to_record, :event_to_record
8181

8282
def event_to_record(domain_event)
83+
puts "[DEBUG] Before transformation - Event timestamp: #{domain_event.timestamp}"
8384
record = original_event_to_record(domain_event)
85+
puts "[DEBUG] After transformation - Record timestamp: #{record.timestamp}"
8486
if record.timestamp.nil?
8587
puts "[ERROR] Record created with nil timestamp!"
8688
puts "[ERROR] Event class: #{domain_event.class.name}"

0 commit comments

Comments
 (0)