Skip to content

Commit

Permalink
Fixed bug that caused ntp-ctl validate to not print warnings. (#824)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidv1992 authored Jun 30, 2023
1 parent b1451a8 commit de0392a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Master
======

Bug fixes
-----
- Fixed bug that caused ntp-ctl validate to not print warnings on the configuration, only parsing errors.

Version 0.3.5
======

Expand Down
5 changes: 5 additions & 0 deletions ntp-ctl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ enum PrintState {
}

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

0 comments on commit de0392a

Please sign in to comment.