Skip to content

Commit

Permalink
Move traits listing to debug realm
Browse files Browse the repository at this point in the history
  • Loading branch information
isbm committed Nov 12, 2024
1 parent 4261d6e commit 9b5ba97
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions sysminion/src/minion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use libsysinspect::{
SysinspectError,
};
use once_cell::sync::{Lazy, OnceCell};
use std::{fs, path::PathBuf, sync::Arc};
use std::{fs, path::PathBuf, sync::Arc, vec};
use tokio::net::{tcp::OwnedReadHalf, TcpStream};
use tokio::sync::Mutex;
use tokio::{io::AsyncReadExt, sync::mpsc};
Expand Down Expand Up @@ -96,7 +96,11 @@ impl SysMinion {
fs::create_dir_all(self.cfg.functions_dir())?;
}

println!("Traits:\n{:#?}", get_minion_traits());
let mut out: Vec<String> = vec![];
for t in get_minion_traits().items() {
out.push(format!("{}: {}", t.to_owned(), dataconv::to_string(get_minion_traits().get(t)).unwrap_or_default()));
}
log::debug!("Minion traits:\n{}", out.join("\n"));

Ok(())
}
Expand Down

0 comments on commit 9b5ba97

Please sign in to comment.