Skip to content

Commit

Permalink
Do not support setting an empty log filter
Browse files Browse the repository at this point in the history
  • Loading branch information
rnijveld authored and folkertdev committed Jul 28, 2023
1 parent c510d1d commit a94a972
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions ntp-daemon/src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -448,18 +448,7 @@ mod tests {
addr: NormalizedAddress::new_unchecked("example.com", 123).into(),
})]
);

let config: Config = toml::from_str(
"log-filter = \"\"\n[[peers]]\nmode = \"simple\"\naddress = \"example.com\"",
)
.unwrap();
assert!(config.log_filter.is_none());
assert_eq!(
config.peers,
vec![PeerConfig::Standard(StandardPeerConfig {
addr: NormalizedAddress::new_unchecked("example.com", 123).into(),
})]
);

let config: Config = toml::from_str(
"log-filter = \"info\"\n[[peers]]\nmode = \"simple\"\naddress = \"example.com\"",
Expand Down

0 comments on commit a94a972

Please sign in to comment.