Skip to content

Commit

Permalink
Fix prebuilt conntracker warning
Browse files Browse the repository at this point in the history
  • Loading branch information
hmahmood committed Nov 5, 2024
1 parent bebb00d commit be4c8ee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/network/tracer/ebpf_conntracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,6 @@ func NewEBPFConntracker(cfg *config.Config, telemetrycomp telemetryComp.Componen
}
}

if prebuilt.IsDeprecated() {
log.Warn("using deprecated prebuilt conntracker")
}

var isPrebuilt bool
if m == nil {
m, err = ebpfConntrackerPrebuiltCreator(cfg)
Expand All @@ -127,6 +123,10 @@ func NewEBPFConntracker(cfg *config.Config, telemetrycomp telemetryComp.Componen
isPrebuilt = true
}

if isPrebuilt && prebuilt.IsDeprecated() {
log.Warn("using deprecated prebuilt conntracker")
}

err = m.Start()
if err != nil {
_ = m.Stop(manager.CleanAll)
Expand Down

0 comments on commit be4c8ee

Please sign in to comment.