Skip to content

Commit

Permalink
chore: add container type to server info log (#2286)
Browse files Browse the repository at this point in the history
Signed-off-by: Sidhant Kohli <[email protected]>
  • Loading branch information
kohlisid authored Dec 13, 2024
1 parent 10b4978 commit a32ebbc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions rust/numaflow-core/src/shared/server_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,17 @@ pub(crate) async fn sdk_server_info(
// Read the server info file
let server_info = read_server_info(&file_path, cln_token).await?;

// Get the container type from the server info file
let container_type = get_container_type(&file_path).unwrap_or(ContainerType::Unknown);

// Log the server info
info!("Server info file: {:?}", server_info);
info!(?container_type, ?server_info, "Server info file");

// Extract relevant fields from server info
let sdk_version = &server_info.version;
let min_numaflow_version = &server_info.minimum_numaflow_version;
let sdk_language = &server_info.language;
let container_type = get_container_type(&file_path).unwrap_or(ContainerType::Unknown);

// Get version information
let version_info = version::get_version_info();
let numaflow_version = &version_info.version;
Expand Down

0 comments on commit a32ebbc

Please sign in to comment.