Rdkb 62887#22
Conversation
Reason for change: To fix the issue. Test Procedure: Tested on RG Risks: Low Priority:P2 Signed-off-by:jayasrikadiyala@gmail.com
Reason for change: To fix the issue. Test Procedure: Tested on RG Risks: Low Priority:P2 Signed-off-by:jayasrikadiyala@gmail.com
Reason for change: To fix the issue. Test Procedure: Tested on RG Risks: Low Priority:P2 Signed-off-by:jayasrikadiyala@gmail.com
|
All contributors have signed the CLA ✍️ ✅ |
|
I have read the CLA Document and I hereby sign the CLA |
There was a problem hiding this comment.
Pull request overview
This PR aims to reduce verbosity in the SNMP module (RDKB-62887) by downgrading several SNMP log statements from Info/Warning to Debug and introducing a local debug header.
Changes:
- Added
ccsp_snmp_debug.hand included it in several SNMP source files. - Changed multiple
AnscTraceInfo/AnscTraceWarninglog statements toAnscTraceDebug. - Changed
Cosa_GetParamValues()“GET called/success” logs fromCcspTraceInfotoCcspTraceDebug.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| source/include/ccsp_snmp_debug.h | Introduces an AnscTraceDebug macro override used by SNMP sources. |
| source/custom/ccsp_snmp_common.c | Includes new debug header and downgrades “dest comp not found” logs to Debug. |
| source/SnmpPlugin/cosa_api.c | Downgrades SNMP GET call/success logs from Info to Debug. |
| source/SnmpPlugin/ccsp_table_helper_control.c | Includes new debug header; downgrades a cache-handler registration log to Debug. |
| source/SnmpPlugin/ccsp_table_helper_access.c | Includes new debug header; downgrades “dest comp not found” log to Debug. |
| source/SnmpPlugin/ccsp_scalar_helper_control.c | Includes new debug header; downgrades a cache-handler registration log to Debug. |
| source/SnmpPlugin/ccsp_scalar_helper_access.c | Includes new debug header; downgrades “dest comp not found” log to Debug. |
| source/SnmpPlugin/ccsp_mib_utilities.c | Includes new debug header; downgrades “dest comp not found” log to Debug. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| } while (0) | ||
| #else | ||
| #define CCSP_SNMP_DEBUG_TRACE(a) \ | ||
| do { \ |
|
|
||
| #ifndef CCSP_SNMP_DEBUG_TRACE | ||
| #if defined(CCSP_SNMP_ENABLE_DEBUG_PRINT) | ||
| #define CCSP_SNMP_DEBUG_TRACE(a) \ | ||
| do { \ | ||
| printf("%s:%d> ", __FUNCTION__, __LINE__); \ | ||
| printf a; \ |
To reduce logging in SNMP module.
https://ccp.sys.comcast.net/browse/RDKB-62887