aboutsummaryrefslogtreecommitdiffstats
path: root/src/config/mod.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-28 14:03:53 +0100
committertv <tv@krebsco.de>2026-10-28 14:03:53 +0100
commit86104f5aa4fa6d8cbc0ea2c5d47481e23c3aff04 (patch)
treee969237e0d7614f884d544e23f675df7209e5c97 /src/config/mod.rs
parenteddf62d7a202a0b8b95df28d769e62fe23622b7a (diff)
add support for renaming IDs in the logger
Diffstat (limited to 'src/config/mod.rs')
-rw-r--r--src/config/mod.rs9
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,