From ff5f9410de7f4703bce374c359edc75b5e55c9d8 Mon Sep 17 00:00:00 2001 From: Markus Stange Date: Tue, 23 Jul 2024 12:28:07 -0400 Subject: [PATCH] Print profile URL to stdout if --no-open or --save-only is specified. This makes it easier to consume from scripts. --- samply/src/server.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samply/src/server.rs b/samply/src/server.rs index e974d7a3..81a3ca78 100644 --- a/samply/src/server.rs +++ b/samply/src/server.rs @@ -198,7 +198,7 @@ async fn start_server( eprintln!("Local server listening at {server_origin}"); if !server_props.open_in_browser { if let Some(profiler_url) = &profiler_url { - eprintln!(" Open the profiler at {profiler_url}"); + println!("{profiler_url}"); } } eprintln!("Press Ctrl+C to stop.");