Skip to content

Commit

Permalink
[backport] [NPM] Fix prebuilt conntracker warning (#30779)
Browse files Browse the repository at this point in the history
  • Loading branch information
hmahmood authored Nov 5, 2024
1 parent bebb00d commit 07e7e44
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 07e7e44

Please sign in to comment.