env for INPUT_NAME

master
Bel LaPointe 2023-03-23 15:27:06 -06:00
parent 9df201fe4d
commit 9d582d3bf4
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ fn build_config_std() -> Config {
Err(_) => None,
},
engine: Engine{
name: String::from("stdin"),
name: env::var("INPUT_NAME").unwrap_or(String::from("stdin")),
kafka: None,
device: None,
udp: Some(UDP{