Skip to content

RDKB-62887: To reduce logging in SNMP module#23

Closed
jayasrikadiyal wants to merge 6 commits into
developfrom
rdkb-62887
Closed

RDKB-62887: To reduce logging in SNMP module#23
jayasrikadiyal wants to merge 6 commits into
developfrom
rdkb-62887

Conversation

@jayasrikadiyal
Copy link
Copy Markdown

@jayasrikadiyal jayasrikadiyal commented May 1, 2026

Reason for change: To reduce logging in SNMP module. https://ccp.sys.comcast.net/browse/RDKB-62887
Test Procedure: We should not see the Repeated logs with Deafult Log Level Info.
Risks: Low
Priority: P1
Signed-off-by: Jayasri Kadiyala Jayasri_Kadiyala@comcast.com

jayasrikadiyal and others added 5 commits April 30, 2026 13:02
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
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses RDKB-62887 by reducing SNMP component log verbosity, primarily by downgrading several Info/Warning trace points to Debug-level equivalents and adding a local debug trace helper.

Changes:

  • Added ccsp_snmp_debug.h to provide an AnscTraceDebug macro for SNMP sources.
  • Replaced selected AnscTraceInfo/AnscTraceWarning calls with AnscTraceDebug in table/scalar helper and common DM access paths.
  • Replaced selected CcspTraceInfo calls with CcspTraceDebug in SNMP GET parameter handling.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
source/include/ccsp_snmp_debug.h Adds a debug macro intended to support lowering ANSC trace verbosity.
source/custom/ccsp_snmp_common.c Lowers “find destination component” logging from Warning to Debug.
source/SnmpPlugin/cosa_api.c Lowers SNMP GET “called/success” logs from Info to Debug.
source/SnmpPlugin/ccsp_table_helper_control.c Lowers cache-handler registration log from Info to Debug and includes new debug header.
source/SnmpPlugin/ccsp_table_helper_access.c Lowers “find destination component” log from Warning to Debug and includes new debug header.
source/SnmpPlugin/ccsp_scalar_helper_control.c Lowers cache-handler registration log from Info to Debug and includes new debug header.
source/SnmpPlugin/ccsp_scalar_helper_access.c Lowers “find destination component” log from Warning to Debug and includes new debug header.
source/SnmpPlugin/ccsp_mib_utilities.c Lowers “find destination component” log from Warning to Debug and includes new debug header.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +23 to +31
#include <stdio.h>

#undef AnscTraceDebug
#define AnscTraceDebug(a) \
do { \
printf("%s:%d> ", __FUNCTION__, __LINE__); \
printf a; \
} while (0)

Comment on lines +20 to +21
#ifndef _CCSP_SNMP_DEBUG_H
#define _CCSP_SNMP_DEBUG_H
@jayasrikadiyal jayasrikadiyal changed the title Rdkb 62887 RDKB-62887: To reduce logging in SNMP module May 12, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators May 13, 2026
@jayasrikadiyal
Copy link
Copy Markdown
Author

Created another request with new changes

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants