Skip to content

Commit dbf81f7

Browse files
committed
Clean up extra debug logs
Probably a bit noisy since we're already logging these results in the main tansu binary
1 parent cb957b6 commit dbf81f7

File tree

1 file changed

+3
-20
lines changed

1 file changed

+3
-20
lines changed

tansu-cli/src/cli.rs

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -122,26 +122,10 @@ impl Cli {
122122
let cli = Cli::parse();
123123

124124
match cli.command.unwrap_or(Command::Broker(Box::new(cli.broker))) {
125-
Command::Broker(arg) => arg
126-
.main()
127-
.await
128-
.inspect(|result| debug!(?result))
129-
.inspect_err(|err| debug!(?err)),
130-
125+
Command::Broker(arg) => arg.main().await,
131126
Command::Cat { command } => command.main().await,
132-
133-
Command::Generator(arg) => arg
134-
.main()
135-
.await
136-
.inspect(|result| debug!(?result))
137-
.inspect_err(|err| debug!(?err)),
138-
139-
Command::Perf(arg) => arg
140-
.main()
141-
.await
142-
.inspect(|result| debug!(?result))
143-
.inspect_err(|err| debug!(?err)),
144-
127+
Command::Generator(arg) => arg.main().await,
128+
Command::Perf(arg) => arg.main().await,
145129
Command::Proxy(arg) => tansu_proxy::Proxy::main(
146130
arg.listener_url.into_inner(),
147131
arg.advertised_listener_url.into_inner(),
@@ -151,7 +135,6 @@ impl Cli {
151135
)
152136
.await
153137
.map_err(Into::into),
154-
155138
Command::Topic { command } => command.main().await,
156139
}
157140
}

0 commit comments

Comments
 (0)