opentelemetry-cpp icon indicating copy to clipboard operation
opentelemetry-cpp copied to clipboard

[api/logs] Return NoopLogRecord from NoopLogger

Open yurishkuro opened this issue 1 year ago • 0 comments

Fixes #2656

Changes

NoopLogger was incorrectly returning nullptr, causing segfaults in client code. After this change it returns a dummy no-op log record.

  • [ ] CHANGELOG.md updated for non-trivial changes
  • [x] Unit tests have been added
  • [ ] Changes in public API reviewed

yurishkuro avatar May 07 '24 16:05 yurishkuro