Skip to content

Commit

Permalink
show version in log
Browse files Browse the repository at this point in the history
  • Loading branch information
ssrlive committed Mar 26, 2024
1 parent b0de947 commit 5ff350a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pub async fn run_client<F>(config: &Config, quit: crate::CancellationToken, call
where
F: FnOnce(SocketAddr) + Send + Sync + 'static,
{
log::info!("starting {} client...", env!("CARGO_PKG_NAME"));
log::info!("starting {} {} client...", env!("CARGO_PKG_NAME"), env!("CARGO_PKG_VERSION"));
log::trace!("with following settings:");
log::trace!("{}", serde_json::to_string_pretty(config)?);

Expand Down
2 changes: 1 addition & 1 deletion src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const WS_HANDSHAKE_LEN: usize = 1024;
const WS_MSG_HEADER_LEN: usize = 14;

pub async fn run_server(config: &Config, exiting_flag: crate::CancellationToken) -> Result<()> {
log::info!("starting {} server...", env!("CARGO_PKG_NAME"));
log::info!("starting {} {} server...", env!("CARGO_PKG_NAME"), env!("CARGO_PKG_VERSION"));
log::trace!("with following settings:");
log::trace!("{}", serde_json::to_string_pretty(config)?);

Expand Down

0 comments on commit 5ff350a

Please sign in to comment.