Skip to content

Commit

Permalink
feat(plc4go/spi): log when a expectation was created
Browse files Browse the repository at this point in the history
  • Loading branch information
sruehl committed Jul 12, 2023
1 parent 3a5433d commit 2430acf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plc4go/spi/default/DefaultCodec.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ func (m *defaultCodec) Expect(ctx context.Context, acceptsMessage spi.AcceptsMes
defer m.expectationsChangeMutex.Unlock()
expectation := newDefaultExpectation(ctx, ttl, acceptsMessage, handleMessage, handleError)
m.expectations = append(m.expectations, expectation)
m.log.Debug().Stringer("expectation", expectation).Msg("Added expectation")
return nil
}

Expand Down

0 comments on commit 2430acf

Please sign in to comment.