chiark / gitweb /
config: Drop spurious dbg! logging
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 13 Feb 2021 00:06:33 +0000 (00:06 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 13 Feb 2021 01:47:10 +0000 (01:47 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/config.rs

index 7fb0bcac833f98499739b9399a7a00b046f32b5a..5e1dfd7fb2968fa4592b6bd0d053ba0a75616385 100644 (file)
@@ -141,15 +141,12 @@ impl TryFrom<ServerConfigSpec> 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<u8> = 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<ServerConfigSpec> for WholeServerConfig {
         .context(LOG_ENV_VAR)
         .context("processing env override")?;
 
-      dbg!(&log);
       Table(log)
     };