MCPcopy Create free account
hub / github.com/aeroxy/chrome-devtools-cli / log_command

Function log_command

src/telemetry.rs:215–219  ·  view source on GitHub ↗

Log a command invocation to the global logger. No-op if the logger hasn't been initialized.

(command: &str, duration: Duration, success: bool, error_code: Option<u32>)

Source from the content-addressed store, hash-verified

213///
214/// No-op if the logger hasn't been initialized.
215pub fn log_command(command: &str, duration: Duration, success: bool, error_code: Option<u32>) {
216 if let Some(logger) = logger() {
217 logger.log_command(command, duration, success, error_code);
218 }
219}
220
221/// Shut down the global telemetry logger gracefully.
222///

Callers 3

run_direct_fallbackFunction · 0.85
handle_requestFunction · 0.85

Calls 2

loggerFunction · 0.85
log_commandMethod · 0.80

Tested by 1