Skip to content

Commit

Permalink
user: adjusted the timing of the display of the kernel version is too…
Browse files Browse the repository at this point in the history
… low

Signed-off-by: CFC4N <cfc4n.cs@gmail.com>
  • Loading branch information
cfc4n committed Aug 25, 2024
1 parent c9984fc commit 911aefe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion user/module/imodule.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ func (m *Module) Init(ctx context.Context, logger *zerolog.Logger, conf config.I
// it's safe to ignore err because we have checked it in main funcition
if kv < kernel.VersionCode(5, 2, 0) {
m.isKernelLess5_2 = true
m.logger.Warn().Str("kernel", kv.String()).Msg("Kernel version is less than 5.2, Process filtering parameters do not take effect such as pid/uid.")
}
m.logger.Warn().Str("kernel", kv.String()).Msg("Kernel version is less than 5.2, Process filtering parameters do not take effect such as pid/uid.")
}

logger.Info().Int("Pid", os.Getpid()).Str("Kernel Info", kv.String()).Send()
Expand Down

0 comments on commit 911aefe

Please sign in to comment.