From 49ffd5388c1fc7c412a4147b79be620d212e0f0a Mon Sep 17 00:00:00 2001 From: Collin Jackson Date: Mon, 21 Oct 2024 07:20:57 -0700 Subject: [PATCH] Avoid logging analytics in debug mode --- clients/cli/src/config.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/clients/cli/src/config.rs b/clients/cli/src/config.rs index aff1d5a..5c89007 100644 --- a/clients/cli/src/config.rs +++ b/clients/cli/src/config.rs @@ -1,3 +1,10 @@ +#[cfg(debug_assertions)] +pub fn analytics_token(_ws_addr_string: &str) -> String { + // Use one of the tokens in the release version if debugging analytics + return "".into(); +} + +#[cfg(not(debug_assertions))] pub fn analytics_token(ws_addr_string: &str) -> String { if ws_addr_string.starts_with("wss://dev.orchestrator.nexus.xyz:443/") { return "504d4d443854f2cd10e2e385aca81aa4".into();