Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion fact/src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ impl FactConfig {
)?;

// Once file configuration is handled, apply CLI arguments
let args = FactCli::try_parse()?;
let args = FactCli::parse();
config.update(&args.to_config());

info!("{config:#?}");
Expand Down
3 changes: 3 additions & 0 deletions fact/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ pub fn log_system_information() {
}

pub async fn run(config: FactConfig) -> anyhow::Result<()> {
// Log system information as early as possible so we have it
// available in case of a crash
log_system_information();
let (run_tx, run_rx) = watch::channel(true);
let (tx, rx) = broadcast::channel(100);

Expand Down
5 changes: 0 additions & 5 deletions fact/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ use fact::config::FactConfig;
#[tokio::main]
async fn main() -> anyhow::Result<()> {
fact::init_log()?;

// Log system information as early as possible so we have it
// available in case of a crash
fact::log_system_information();

let config = FactConfig::new(&[
"/etc/stackrox/fact.yml",
"/etc/stackrox/fact.yaml",
Expand Down
Loading