Skip to content

Commit

Permalink
attributes: document default level for err (#2433)
Browse files Browse the repository at this point in the history
## Motivation

The current description for the default level of the `err` return value
event _strongly implies_ it's the same as the span. However, the
implementation actually defaults to `ERROR`.

## Solution

This PR documents that, so future generations don't have to chase down
the truth, like I did. 😉
  • Loading branch information
quad authored and hawkw committed Apr 21, 2023
1 parent 0328b5f commit 59d9ae3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tracing-attributes/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,8 @@ mod expand;
/// }
/// ```
///
/// The level of the error value event defaults to `ERROR`.
///
/// Similarly, overriding the level of the `err` event :
///
/// ```
Expand Down

0 comments on commit 59d9ae3

Please sign in to comment.