-
Notifications
You must be signed in to change notification settings - Fork 6
RDKEMW-13612-RFC Logs Not Found in the rfcscript.log in RDKE Builds #168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -20,6 +20,7 @@ | |||||||||||||||||||||||||||
| #include "rfc_manager.h" | ||||||||||||||||||||||||||||
| #include "rfc_common.h" | ||||||||||||||||||||||||||||
| #include "rfc_mgr_iarm.h" | ||||||||||||||||||||||||||||
| #include "rdk_logger.h" | ||||||||||||||||||||||||||||
| #include "rfc_xconf_handler.h" | ||||||||||||||||||||||||||||
| #include <fstream> | ||||||||||||||||||||||||||||
| #include <unistd.h> | ||||||||||||||||||||||||||||
|
|
@@ -40,7 +41,19 @@ namespace rfc { | |||||||||||||||||||||||||||
| #endif | ||||||||||||||||||||||||||||
| RFCManager ::RFCManager() { | ||||||||||||||||||||||||||||
| /* Initialize RDK Logger */ | ||||||||||||||||||||||||||||
| rdk_logger_init(0 == access(OVERIDE_DEBUG_INI_FILE, R_OK) ? OVERIDE_DEBUG_INI_FILE : DEBUG_INI_FILE); | ||||||||||||||||||||||||||||
| static char RFCMGRLOG[] = "LOG.RDK.RFCMGR"; | ||||||||||||||||||||||||||||
| rdk_logger_ext_config_t config = { | ||||||||||||||||||||||||||||
| .pModuleName = RFCMGRLOG, /* Module name */ | ||||||||||||||||||||||||||||
| .loglevel = RDK_LOG_INFO, /* Default log level */ | ||||||||||||||||||||||||||||
| .output = RDKLOG_OUTPUT_CONSOLE, /* Output to console (stdout/stderr) */ | ||||||||||||||||||||||||||||
| .format = RDKLOG_FORMAT_WITH_TS, /* Timestamped format */ | ||||||||||||||||||||||||||||
| .pFilePolicy = NULL /* Not using file output, so NULL */ | ||||||||||||||||||||||||||||
| }; | ||||||||||||||||||||||||||||
|
Comment on lines
+45
to
+51
|
||||||||||||||||||||||||||||
| rdk_logger_ext_config_t config = { | |
| .pModuleName = RFCMGRLOG, /* Module name */ | |
| .loglevel = RDK_LOG_INFO, /* Default log level */ | |
| .output = RDKLOG_OUTPUT_CONSOLE, /* Output to console (stdout/stderr) */ | |
| .format = RDKLOG_FORMAT_WITH_TS, /* Timestamped format */ | |
| .pFilePolicy = NULL /* Not using file output, so NULL */ | |
| }; | |
| rdk_logger_ext_config_t config{}; | |
| config.pModuleName = RFCMGRLOG; /* Module name */ | |
| config.loglevel = RDK_LOG_INFO; /* Default log level */ | |
| config.output = RDKLOG_OUTPUT_CONSOLE; /* Output to console (stdout/stderr) */ | |
| config.format = RDKLOG_FORMAT_WITH_TS; /* Timestamped format */ | |
| config.pFilePolicy = NULL; /* Not using file output, so NULL */ |
Copilot
AI
Feb 6, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This replaces rdk_logger_init(…debug.ini…) with a hardcoded extended-logger config (INFO level, console output, no file policy). That removes runtime configurability via /etc/debug.ini/override paths and may change where logs are written. Consider continuing to honor the debug.ini selection (or mapping its settings into the ext config) instead of hardcoding output/level.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RFCMGRLOGduplicates the existingLOG_RFCMGRmodule name macro (defined in rfc_common.h) and is mutable (char[]) even though it’s a constant string. Prefer reusingLOG_RFCMGRand making the module nameconst char*/constexprto avoid duplication and accidental mutation.