From: Ian Jackson Date: Sat, 13 Feb 2021 00:06:33 +0000 (+0000) Subject: config: Drop spurious dbg! logging X-Git-Tag: otter-0.4.0~535 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=dce97afbc251a9fb416f28b8bbcccedc358c9c59;p=otter.git config: Drop spurious dbg! logging Signed-off-by: Ian Jackson --- diff --git a/src/config.rs b/src/config.rs index 7fb0bcac..5e1dfd7f 100644 --- a/src/config.rs +++ b/src/config.rs @@ -141,15 +141,12 @@ impl TryFrom for WholeServerConfig { // But we can simulate this by having it convert the env results // to toml and merging it with the stuff from the file. (||{ - dbg!(&log); if let Some(v) = env::var_os(LOG_ENV_VAR) { let v = v.to_str().ok_or(anyhow!("UTF-8 conversion"))?; let v = LogSpecification::parse(v).context("parse")?; - dbg!(&v); let mut buf: Vec = default(); v.to_toml(&mut buf).context("convert to toml")?; let v = toml_de::from_slice(&buf).context("reparse")?; - dbg!(&v); match v { Some(Table(v)) => toml_merge(&mut log, &v), None => default(), @@ -161,7 +158,6 @@ impl TryFrom for WholeServerConfig { .context(LOG_ENV_VAR) .context("processing env override")?; - dbg!(&log); Table(log) };