Browse Source

mgentools: make less verbose

Justin Tracey 9 months ago
parent
commit
6a08a0cc01
1 changed files with 2 additions and 3 deletions
  1. 2 3
      mgentools/src/main.rs

+ 2 - 3
mgentools/src/main.rs

@@ -46,8 +46,8 @@ where
     for result in rdr.deserialize() {
     for result in rdr.deserialize() {
         let record: Record = match result {
         let record: Record = match result {
             Ok(record) => record,
             Ok(record) => record,
-            Err(e) => {
-                eprintln!("bad record: {:?}", e);
+            Err(_e) => {
+                //eprintln!("bad record: {:?}", e);
                 continue;
                 continue;
             }
             }
         };
         };
@@ -152,7 +152,6 @@ fn build_bootstrap_table(path: &str) -> Result<BootstrapTable, Box<dyn Error>> {
     let configs = glob::glob(&format!("{}/shadow.data/hosts/*/user*.yaml", path))?;
     let configs = glob::glob(&format!("{}/shadow.data/hosts/*/user*.yaml", path))?;
     for config in configs {
     for config in configs {
         let config = config?;
         let config = config?;
-        println!("{:?}", config);
         let config: Config = serde_yaml::from_reader(File::open(config)?)?;
         let config: Config = serde_yaml::from_reader(File::open(config)?)?;
         for conversation in config.conversations {
         for conversation in config.conversations {
             let key = (config.user.clone(), conversation.group);
             let key = (config.user.clone(), conversation.group);