Skip to content

Commit 92ecbe8

Browse files
authored
Merge pull request #2273 from input-output-hk/dlachaume/add-cli-version-log
Chore: add Mithril client CLI version in debug logs
2 parents 8ddf19d + 8efe5f2 commit 92ecbe8

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mithril-client-cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "mithril-client-cli"
3-
version = "0.10.9"
3+
version = "0.10.10"
44
description = "A Mithril Client"
55
authors = { workspace = true }
66
edition = { workspace = true }

mithril-client-cli/src/main.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ pub struct Args {
8585

8686
impl Args {
8787
pub async fn execute(&self, root_logger: Logger) -> MithrilResult<()> {
88+
debug!(
89+
root_logger,
90+
"Mithril client CLI version: {}",
91+
env!("CARGO_PKG_VERSION")
92+
);
8893
debug!(root_logger, "Run Mode: {}", self.run_mode);
8994
let filename = format!("{}/{}.json", self.config_directory.display(), self.run_mode);
9095
debug!(root_logger, "Reading configuration file '{filename}'.");

0 commit comments

Comments
 (0)