Change the log level from ERROR to INFO for cases; not a Go binary or symbol table is stripped (#1164)

This commit is contained in:
M. Mert Yıldıran 2022-06-26 05:25:26 -07:00 committed by GitHub
parent cf91f3dab4
commit c1b2cda468
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -193,7 +193,8 @@ func (t *TlsTapper) tapGoPid(procfs string, pid uint32, namespace string) error
hooks := goHooks{}
if err := hooks.installUprobes(&t.bpfObjects, exePath); err != nil {
return err
logger.Log.Infof("PID skipped not a Go binary or symbol table is stripped (pid: %v) %v", pid, exePath)
return nil // hide the error on purpose, its OK for a process to be not a Go binary or stripped Go binary
}
logger.Log.Infof("Tapping TLS (pid: %v) (Go: %v)", pid, exePath)