Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

subscriber: fix missing event fields in Compact formatter #1755

Merged
merged 3 commits into from Nov 29, 2021

Conversation

hawkw
Copy link
Member

@hawkw hawkw commented Nov 29, 2021

The line of code that prints the event's fields (including its message)
was accidentally deleted in 0a16972,
while backporting PR #1696 from master (where the Compact formatter
implementation is significantly different).

This branch puts it back. Also, I've added tests for the Compact formatter's
output, to guard against accidentally breaking it in the future. Previously, we
only had tests for the Full and Json formatters.

Fixes #1741

The line of code that prints the event's fields (including its message)
was accidentally deleted in 0a16972,
while backporting PR #1696 from `master` (where the `Compact`) formatter
implementation is significantly different.

This branch puts it back.

Fixes #1741
@hawkw hawkw requested a review from a team as a code owner November 29, 2021 18:57
Signed-off-by: Eliza Weisman <eliza@buoyant.io>
Signed-off-by: Eliza Weisman <eliza@buoyant.io>
@hawkw hawkw merged commit e671318 into v0.1.x Nov 29, 2021
@hawkw hawkw deleted the eliza/fix-compact-2 branch November 29, 2021 21:26
hawkw added a commit that referenced this pull request Nov 29, 2021
# 0.3.3 (Nov 29, 2021)

This release fixes a pair of regressions in `tracing-subscriber`'s `fmt`
module.

### Fixed

- **fmt**: Fixed missing event fields with `Compact` formatter ([#1755])
- **fmt**: Fixed `PrettyFields` formatter (and thus `format::Pretty`
  event formatter) ignoring the `fmt::Layer`'s ANSI color code
  configuration ([#1747])

[#1755]: #1755
[#1747]: #1747
hawkw added a commit that referenced this pull request Nov 29, 2021
# 0.3.3 (Nov 29, 2021)

This release fixes a pair of regressions in `tracing-subscriber`'s `fmt`
module.

### Fixed

- **fmt**: Fixed missing event fields with `Compact` formatter ([#1755])
- **fmt**: Fixed `PrettyFields` formatter (and thus `format::Pretty`
  event formatter) ignoring the `fmt::Layer`'s ANSI color code
  configuration ([#1747])

[#1755]: #1755
[#1747]: #1747
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants