Selaa lähdekoodia

mgentools: make less verbose

Justin Tracey 9 kuukautta sitten
vanhempi
commit
6a08a0cc01
1 muutettua tiedostoa jossa 2 lisäystä ja 3 poistoa
  1. 2 3
      mgentools/src/main.rs

+ 2 - 3
mgentools/src/main.rs

@@ -46,8 +46,8 @@ where
     for result in rdr.deserialize() {
         let record: Record = match result {
             Ok(record) => record,
-            Err(e) => {
-                eprintln!("bad record: {:?}", e);
+            Err(_e) => {
+                //eprintln!("bad record: {:?}", e);
                 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))?;
     for config in configs {
         let config = config?;
-        println!("{:?}", config);
         let config: Config = serde_yaml::from_reader(File::open(config)?)?;
         for conversation in config.conversations {
             let key = (config.user.clone(), conversation.group);