Skip to content

Commit

Permalink
add some suffix matches to catch e.g grpc.error and grpc.code
Browse files Browse the repository at this point in the history
  • Loading branch information
fredr committed Mar 4, 2024
1 parent 4bee46b commit 341621e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/styling/theme.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ impl<S: Style> Theme<S> {
"status" | "status_code" => self.highlight.write(value, writer),
"error" | "err" => self.error_text.write(value, writer),
"trace_id" | "span_path" | "span" => self.debug_text.write(value, writer),
key if key.ends_with("code") => self.highlight.write(value, writer),
key if key.ends_with("error") => self.error_text.write(value, writer),
_ => self.dim.write(value, writer),
}
}
Expand Down

0 comments on commit 341621e

Please sign in to comment.