diff options
| author | tv <tv@krebsco.de> | 2026-10-28 05:13:18 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-28 05:13:18 +0100 |
| commit | 46c7d1bf7dd359e5eef6bc9eff023be7b9addb93 (patch) | |
| tree | 31da0cac4911f8825dc8c602a9b6182cbb9b3eab /src/transport/mycelium/daemon.rs | |
| parent | 617575073693643aab33c63bf6ba03fa30933c2e (diff) | |
cleanup log messages
Diffstat (limited to 'src/transport/mycelium/daemon.rs')
| -rw-r--r-- | src/transport/mycelium/daemon.rs | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/src/transport/mycelium/daemon.rs b/src/transport/mycelium/daemon.rs index f986d52..58ebe0c 100644 --- a/src/transport/mycelium/daemon.rs +++ b/src/transport/mycelium/daemon.rs @@ -66,19 +66,14 @@ impl MyceliumSetup { pub(crate) async fn bootstrap(config: MyceliumSpawnConfig) -> Result<Self> { // TODO warn for all ignored options if rest_url_opt is set if let Some(url) = config.rest_url_opt { - tracing::info!( - "Configured to interface with an external standalone Mycelium instance at: {}", - url - ); + tracing::info!(url = %url, "Using a daemon running elsewhere"); return Ok(Self { runtime: MyceliumRuntime::External, rest_url: url, }); } - tracing::info!( - "Configured to initialize an embedded user-space Mycelium background worker" - ); + tracing::info!("Starting the supervised daemon"); let key = match config.key_file_opt { Some(key_file) => KeySource::Path(key_file), @@ -101,7 +96,7 @@ impl MyceliumSetup { let supervised_node = SupervisedMycelium::spawn(key, private_net_config, config.tcp_port, &config.peers) .await - .context("Failed to securely bootstrap embedded Mycelium background worker")?; + .context("Starting the supervised Mycelium daemon")?; let resolved_url = Url::parse(&format!( "http://127.0.0.1:{}", @@ -204,7 +199,7 @@ impl SupervisedMycelium { } // Own process group: a Ctrl-C in the terminal goes to continuum only, // which then stops Mycelium itself, instead of both exiting at once (which - // shows up as "Mycelium runtime process exited"). + // shows up as "A transport stopped"). if libc::setpgid(0, 0) != 0 { return Err(std::io::Error::last_os_error()); } @@ -252,9 +247,7 @@ impl SupervisedMycelium { cmd.stdout(Stdio::piped()); cmd.stderr(Stdio::piped()); - let mut child = cmd - .spawn() - .context("Failed to execute mycelium process daemon")?; + let mut child = cmd.spawn().context("Running `mycelium`")?; // Its output goes where ours does. if let Some(mut stdout) = child.stdout.take() { |
