From 2c0416d53a17400e3c796a6a1e4e196aa5318c56 Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 28 Oct 2026 14:03:53 +0100 Subject: add support for renaming IDs in the logger --- src/config/mod.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/config/mod.rs') diff --git a/src/config/mod.rs b/src/config/mod.rs index d4a7c9c..9c92b7e 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -109,6 +109,13 @@ pub(crate) const OPTIONS: &[OptionSpec] = &[ None, "HTTP API users (from htpasswd) who may write protocol data under /store/_continuum (remake records, members, forget records), e.g. to repair a stuck remake. Such writes act on the whole swarm and are logged. Epoch metadata and the swarm ID are never writable.", ), + option( + "log-raw-ids", + Kind::Flag, + "BOOL", + Some("false"), + "Log node IDs and transport identities as they are. Without it, a member's read `:` wherever they appear (`continuum:`, `libp2p:`), as the member list names it.", + ), option( "debug-api", Kind::Flag, @@ -376,6 +383,8 @@ pub(crate) struct Settings { #[serde(default)] pub(crate) debug_api: bool, #[serde(default)] + pub(crate) log_raw_ids: bool, + #[serde(default)] pub(crate) seeds: Vec, #[serde(default)] pub(crate) genesis: bool, -- cgit v1.3.1