From a32ebbcc93d8a0c566652efb2f3c8d260d8fb7b0 Mon Sep 17 00:00:00 2001 From: Sidhant Kohli Date: Fri, 13 Dec 2024 14:27:19 -0800 Subject: [PATCH] chore: add container type to server info log (#2286) Signed-off-by: Sidhant Kohli --- rust/numaflow-core/src/shared/server_info.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/rust/numaflow-core/src/shared/server_info.rs b/rust/numaflow-core/src/shared/server_info.rs index 40ec6b37d..ee3b1c8d6 100644 --- a/rust/numaflow-core/src/shared/server_info.rs +++ b/rust/numaflow-core/src/shared/server_info.rs @@ -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;