Skip to content

Commit 8110b1b

Browse files
Merge pull request #2682 from saschagrunert/heaptrack-stdout-stderr
Output heaptrack messages if used
2 parents b5e4afe + 9bb76d2 commit 8110b1b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/client/client.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1692,6 +1692,9 @@ func (c *ConmonClient) attachHeaptrack(config *ConmonServerConfig, pid uint32) {
16921692
c.logger.Debugf("Running heaptrack via: %s %s", entrypoint, strings.Join(args, " "))
16931693

16941694
cmd := exec.Command(entrypoint, args...)
1695+
cmd.Stdout = os.Stdout
1696+
cmd.Stderr = os.Stderr
1697+
16951698
if err := cmd.Run(); err != nil {
16961699
c.logger.Errorf("Unable to run heaptrack: %v", err)
16971700
}

0 commit comments

Comments
 (0)