diff --git a/pkg/elfparser/elf.go b/pkg/elfparser/elf.go index 46762ef..21e8c3d 100644 --- a/pkg/elfparser/elf.go +++ b/pkg/elfparser/elf.go @@ -134,7 +134,7 @@ func (b *bpfSDKClient) LoadBpfFile(path, customizedPinPath string) (map[string]B bpfFile, err := os.Open(path) if err != nil { - log.Infof("LoadBpfFile failed to open") + log.Errorf("LoadBpfFile failed to open") return nil, nil, err } defer bpfFile.Close() @@ -157,7 +157,7 @@ func (b *bpfSDKClient) LoadBpfFileWithCustomData(inputData BpfCustomData) (map[s bpfFile, err := os.Open(inputData.FilePath) if err != nil { - log.Infof("LoadBpfFile failed to open") + log.Errorf("LoadBpfFileWithCustomData failed to open") return nil, nil, err } defer bpfFile.Close()