mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 07:41:23 +01:00
add observability infrastructure for cli subcmds
This commit is contained in:
parent
b93c39ee93
commit
b03c2a15b3
5 changed files with 96 additions and 10 deletions
|
|
@ -42,6 +42,9 @@ impl fmt::Display for DisplayWithSources<'_> {
|
|||
pub(crate) enum Main {
|
||||
#[error(transparent)]
|
||||
ServeCommand(#[from] ServeCommand),
|
||||
|
||||
#[error("failed to install global default tracing subscriber")]
|
||||
SetSubscriber(#[from] tracing::subscriber::SetGlobalDefaultError),
|
||||
}
|
||||
|
||||
/// Errors returned from the `serve` CLI subcommand.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue