Skip to content

Commit

Permalink
Adding log.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 committed Aug 8, 2024
1 parent 411ed2a commit 9929c77
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sources/mongo/change_event.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ func NewChangeEvent(rawChangeEvent bson.M) (*ChangeEvent, error) {

fullDoc, isOk := rawChangeEvent["fullDocument"]
if isOk {
fmt.Println("rawChangeEvent", rawChangeEvent)
castedFullDocument, isOk := fullDoc.(bson.M)
if !isOk {
return nil, fmt.Errorf("expected fullDocument to be bson.M, got: %T", fullDoc)
Expand Down

0 comments on commit 9929c77

Please sign in to comment.