RDKB-64757 : Remotedebugger debug.txt getting appended while repeatedly query same issueype#187
RDKB-64757 : Remotedebugger debug.txt getting appended while repeatedly query same issueype#187Abhinavpv28 wants to merge 10 commits intodevelopfrom
Conversation
|
@copilot |
Code Coverage Summary |
There was a problem hiding this comment.
Pull request overview
This PR updates executeCommands() in the remote debugger runtime flow, apparently to change how per-request output files are opened and to make the transient systemd-run unit name derive from the per-execution directory name rather than just the RFC value. In the broader codebase, this sits in the command-execution path that collects debug output and uploads it for a requested issue.
Changes:
- Open each request’s
debug_outputs.txtwith"w+"instead of"a+". - Build the
systemd-run/journalctl/systemctl stopunit name withremote_debugger_+dirname. - Leave the previous
strncpy/strncatunit-name construction in commented form.
…F_LEN_512 Agent-Logs-Url: https://github.com/rdkcentral/remote_debugger/sessions/f3e6d001-a244-4693-b073-fad00bcf7bf7 Co-authored-by: Abhinavpv28 <162570454+Abhinavpv28@users.noreply.github.com>
Fixed in commit The root cause: Changes made:
|
Code Coverage Summary |
Code Coverage Summary |
Code Coverage Summary |
AravindanNC
left a comment
There was a problem hiding this comment.
are multiple command outputs present in the upload file ?
Code Coverage Summary |
Code Coverage Summary |
Code Coverage Summary |
| RDK_LOG(RDK_LOG_ERROR,LOG_REMDEBUG,"[%s:%d]: Starting remote_debugger_%s service failed!!!\n",__FUNCTION__,__LINE__,remoteDebuggerServiceStr); | ||
| } | ||
| else | ||
| { | ||
| RDK_LOG(RDK_LOG_INFO,LOG_REMDEBUG,"[%s:%d]: Starting remote_debugger_%s service success...\n",__FUNCTION__,__LINE__,cmdData->rfcvalue); | ||
| RDK_LOG(RDK_LOG_INFO,LOG_REMDEBUG,"[%s:%d]: Starting remote_debugger_%s service success...\n",__FUNCTION__,__LINE__,remoteDebuggerServiceStr); |
Code Coverage Summary |
No description provided.