From 09cfa1c1099e86567b1174dcfc1fad080a422ae5 Mon Sep 17 00:00:00 2001 From: Trekkie Coder Date: Sat, 16 Nov 2024 09:59:50 +0900 Subject: [PATCH] chore: fixed command-line log-level settings --- options/options.go | 2 +- pkg/loxinet/loxinet.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/options/options.go b/options/options.go index 0dcfda75..5810c590 100644 --- a/options/options.go +++ b/options/options.go @@ -19,7 +19,7 @@ var Opts struct { TLSCertificateKey flags.Filename `long:"tls-key" description:"the private key to use for secure connections" default:"/opt/loxilb/cert/server.key" env:"TLS_PRIVATE_KEY"` ClusterNodes string `long:"cluster" description:"Comma-separated list of cluter-node IP Addresses" default:"none"` ClusterSelf int `long:"self" description:"annonation of self in cluster" default:"0"` - LogLevel string `long:"loglevel" description:"One of debug,info,error,warning,notice,critical,emergency,alert" default:"debug"` + LogLevel string `long:"loglevel" description:"One of trace,debug,info,error,warning,notice,critical,emergency,alert" default:"debug"` CPUProfile string `long:"cpuprofile" description:"Enable cpu profiling and specify file to use" default:"none" env:"CPUPROF"` Prometheus bool `short:"p" long:"prometheus" description:"Run prometheus thread"` CRC32SumDisable bool `long:"disable-crc32" description:"Disable crc32 checksum update(experimental)"` diff --git a/pkg/loxinet/loxinet.go b/pkg/loxinet/loxinet.go index 68386c64..779e2a53 100644 --- a/pkg/loxinet/loxinet.go +++ b/pkg/loxinet/loxinet.go @@ -285,7 +285,7 @@ func loxiNetInit() { RunCommand(MkMountCG2, false) } // Initialize the ebpf datapath subsystem - mh.dpEbpf = DpEbpfInit(clusterMode, mh.rssEn, mh.eHooks, mh.lSockPolicy, mh.sockMapEn, mh.self, mh.disBPF, -1) + mh.dpEbpf = DpEbpfInit(clusterMode, mh.rssEn, mh.eHooks, mh.lSockPolicy, mh.sockMapEn, mh.self, mh.disBPF, logLevel) mh.dp = DpBrokerInit(mh.dpEbpf, rpcMode) // Initialize the security zone subsystem