This is an automated email from the ASF dual-hosted git repository. hanahmily pushed a commit to branch patch-log in repository https://gitbox.apache.org/repos/asf/skywalking-swck.git
commit e7e89c8cedc534fdcdbcd192a65fb8a164488304 Author: Gao Hongtao <[email protected]> AuthorDate: Mon Nov 20 23:36:07 2023 +0000 Enable log relevant flags Signed-off-by: Gao Hongtao <[email protected]> --- adapter/config/namespaced/adapter/adapter.yaml | 1 + adapter/main.go | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/adapter/config/namespaced/adapter/adapter.yaml b/adapter/config/namespaced/adapter/adapter.yaml index 2902f7f..cecd08a 100644 --- a/adapter/config/namespaced/adapter/adapter.yaml +++ b/adapter/config/namespaced/adapter/adapter.yaml @@ -47,6 +47,7 @@ spec: - --secure-port=6443 - --oap-addr=http://skywalking-system-oap.skywalking-system:12800/graphql #the address is used for testing, please use your oap address - --cert-dir=/var/run/serving-cert + - --v=10 ports: - containerPort: 6443 name: https diff --git a/adapter/main.go b/adapter/main.go index ca5da1a..c3c1ffc 100644 --- a/adapter/main.go +++ b/adapter/main.go @@ -18,7 +18,6 @@ package main import ( - "flag" "os" "time" @@ -67,7 +66,7 @@ func main() { cmd.Flags().StringVar(&cmd.Namespace, "namespace", "skywalking.apache.org", "a prefix to which metrics are appended. The format is 'namespace|metric_name'") cmd.Flags().DurationVar(&cmd.RefreshRegistryInterval, "refresh-interval", 10*time.Second, "the interval at which to update the cache of available metrics from OAP cluster") - cmd.Flags().AddGoFlagSet(flag.CommandLine) // make sure we get the klog flags + logs.AddFlags(cmd.Flags()) if err := cmd.Flags().Parse(os.Args); err != nil { klog.Fatalf("failed to parse arguments: %v", err) }
