diff options
| author | tv <tv@krebsco.de> | 2026-10-28 14:03:53 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-28 14:03:53 +0100 |
| commit | 2c0416d53a17400e3c796a6a1e4e196aa5318c56 (patch) | |
| tree | dc06bcaa8045b8e1f6399c5ef277fa8d4908e91b /src/config/mod.rs | |
| parent | a5a27eb4699fc5c3fa9fbcc5886f06b88e068bfd (diff) | |
add support for renaming IDs in the logger
Diffstat (limited to 'src/config/mod.rs')
| -rw-r--r-- | src/config/mod.rs | 9 |
1 files changed, 9 insertions, 0 deletions
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 @@ -110,6 +110,13 @@ pub(crate) const OPTIONS: &[OptionSpec] = &[ "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 `<scheme>:<alias>` wherever they appear (`continuum:<alias>`, `libp2p:<alias>`), as the member list names it.", + ), + option( "debug-api", Kind::Flag, "BOOL", @@ -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<String>, #[serde(default)] pub(crate) genesis: bool, |
