Skip to content

Rdkb 62887#23

Open
jayasrikadiyal wants to merge 5 commits intodevelopfrom
rdkb-62887
Open

Rdkb 62887#23
jayasrikadiyal wants to merge 5 commits intodevelopfrom
rdkb-62887

Conversation

@jayasrikadiyal
Copy link
Copy Markdown

https://ccp.sys.comcast.net/browse/RDKB-62887
Reducing Logs by modifying CcspTraceInfo log to Debug and AnscTraceInfo log to Debug.
Defineing AncTraceDebug as per other modules.

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants