Skip to content

Commit

Permalink
chore: include version in startup message
Browse files Browse the repository at this point in the history
  • Loading branch information
michael1011 committed Aug 22, 2024
1 parent 1dff07b commit f0306db
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,16 @@ async fn main() -> Result<()> {
"cln_plugin=trace,hold=trace,debug,info,warn,error",
);

debug!("Starting plugin");
info!(
"Starting plugin {}-{}{}",
utils::built_info::PKG_VERSION,
utils::built_info::GIT_COMMIT_HASH_SHORT.unwrap_or(""),
if utils::built_info::GIT_DIRTY.unwrap_or(false) {
"-dirty"
} else {
""
}
);

let plugin = match Builder::new(tokio::io::stdin(), tokio::io::stdout())
.dynamic()
Expand Down

0 comments on commit f0306db

Please sign in to comment.