From 1cdb9e869fb2e7e179da9d3028302617b5c0fa91 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 26 Mar 2026 11:19:45 +0000 Subject: [PATCH 1/2] Initial plan From 0bbe39d20f11bba4be982e0f87ea58c80d343261 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 26 Mar 2026 11:27:56 +0000 Subject: [PATCH 2/2] Add #ifdef PLAYER_TELEMETRY_SUPPORT around telemetry events (MW_LOG_MIL) Co-authored-by: dp0000 <53818367+dp0000@users.noreply.github.com> Agent-Logs-Url: https://github.com/rdkcentral/middleware-player-interface/sessions/93917651-a79d-4b85-9504-6df541630832 --- CMakeLists.txt | 7 +++++++ playerLogManager/PlayerLogManager.h | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 86e8ed66..8b1f0dcb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,6 +31,13 @@ if(DISABLE_SECURITY_TOKEN) add_definitions(-DDISABLE_SECURITY_TOKEN) endif() +option(PLAYER_TELEMETRY_SUPPORT "Enable player telemetry support" OFF) + +if(PLAYER_TELEMETRY_SUPPORT) + message(STATUS "PLAYER_TELEMETRY_SUPPORT set") + set(LIBPLAYERGSTINTERFACE_DEFINES "${LIBPLAYERGSTINTERFACE_DEFINES} -DPLAYER_TELEMETRY_SUPPORT") +endif() + # Option for building pi-cli option(BUILD_PICLI "Build the pi-cli test project" OFF) diff --git a/playerLogManager/PlayerLogManager.h b/playerLogManager/PlayerLogManager.h index 3dae3c98..8be1bb92 100644 --- a/playerLogManager/PlayerLogManager.h +++ b/playerLogManager/PlayerLogManager.h @@ -161,7 +161,11 @@ if( (LEVEL) >= PlayerLogManager::mwLoglevel ) \ #define MW_LOG_DEBUG(FORMAT, ...) MW_LOG(mLOGLEVEL_DEBUG, FORMAT, ##__VA_ARGS__) #define MW_LOG_INFO(FORMAT, ...) MW_LOG(mLOGLEVEL_INFO, FORMAT, ##__VA_ARGS__) #define MW_LOG_WARN(FORMAT, ...) MW_LOG(mLOGLEVEL_WARN, FORMAT, ##__VA_ARGS__) +#ifdef PLAYER_TELEMETRY_SUPPORT #define MW_LOG_MIL(FORMAT, ...) MW_LOG(mLOGLEVEL_MIL, FORMAT, ##__VA_ARGS__) +#else +#define MW_LOG_MIL(FORMAT, ...) do {} while(0) +#endif #define MW_LOG_ERR(FORMAT, ...) MW_LOG(mLOGLEVEL_ERROR, FORMAT, ##__VA_ARGS__) #endif /* PLAYER_LOG_MANAGER_H */