Skip to content

Commit de0392a

Browse files
authored
Fixed bug that caused ntp-ctl validate to not print warnings. (#824)
1 parent b1451a8 commit de0392a

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Master
22
======
33

4+
Bug fixes
5+
-----
6+
- Fixed bug that caused ntp-ctl validate to not print warnings on the configuration, only parsing errors.
7+
48
Version 0.3.5
59
======
610

ntp-ctl/src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ enum PrintState {
5656
}
5757

5858
async fn validate(cli: Cli) -> std::io::Result<ExitCode> {
59+
// Late completion not needed, so ignore result.
60+
let _ = ntp_daemon::tracing::init(
61+
tracing_subscriber::EnvFilter::new("info"),
62+
Default::default(),
63+
);
5964
match Config::from_args(cli.config, vec![], vec![]).await {
6065
Ok(config) => {
6166
if config.check() {

0 commit comments

Comments
 (0)