Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add a doc comment for MakeStderrWriter
  • Loading branch information
koute committed Oct 21, 2021
commit 08103bd4db526d24fa61746be99c66703e8c968b
2 changes: 2 additions & 0 deletions client/tracing/src/logging/stderr_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ extern "C" fn on_exit() {
}
}

/// A drop-in replacement for [`std::io::stderr`] for use anywhere
/// a [`tracing_subscriber::fmt::MakeWriter`] is accepted.
pub struct MakeStderrWriter;

impl tracing_subscriber::fmt::MakeWriter for MakeStderrWriter {
Expand Down