Skip to content

Commit 16a2728

Browse files
authored
Merge pull request #1 from tomazzinko/patch-1
Adds debug line to aggreagte_root
2 parents a5aa37c + d3c5700 commit 16a2728

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

aggregate_root.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ func (r *AggregateRootBased) GetUncommittedEvents() []*DomainMessage {
5555

5656
func (r *AggregateRootBased) Apply(event DomainEvent) {
5757
t := reflection.TypeOf(event)
58+
log.Debugf("source: %+v; MethodName: %+v; event: %+v", r.source, fmt.Sprintf("When%s", t.Name()), event)
5859
reflection.CallMethod(r.source, fmt.Sprintf("When%s", t.Name()), event)
5960
log.Debugf("Event %s applied", t.Name())
6061
}

0 commit comments

Comments
 (0)