Skip to content

Commit

Permalink
feat: bug fix analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
c-ravela committed Nov 1, 2023
1 parent fb0fde9 commit 66f6211
Show file tree
Hide file tree
Showing 6 changed files with 193 additions and 67 deletions.
10 changes: 8 additions & 2 deletions cmd/tarian_detector/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ func main() {
log.Printf("%d detectors running...\n\n", eventsDetector.Count())
// defer stats(eventsDetector, bpfLinker)

count := 0
// Loop read events
go func() {
for {
Expand All @@ -63,13 +64,18 @@ func main() {

k8sCtx, err := GetK8sContext(watcher, e["host_pid"].(uint32))
if err != nil {
log.Print(err)
// log.Print(err)
e["kubernetes"] = err.Error()
} else {
e["kubernetes"] = k8sCtx
}

printEvent(e)
// printEvent(e)
count++
fmt.Println("Total count:", count)
// if count > 1000 {
// os.Exit(1)
// }
}
}()

Expand Down
Loading

0 comments on commit 66f6211

Please sign in to comment.