This is an automated email from the ASF dual-hosted git repository.

hanahmily pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-swck.git


The following commit(s) were added to refs/heads/master by this push:
     new 9e5c58b  Enable log relevant flags (#104)
9e5c58b is described below

commit 9e5c58b7530720741969d771adba754e84fe5665
Author: Gao Hongtao <hanahm...@gmail.com>
AuthorDate: Tue Nov 21 08:02:50 2023 +0800

    Enable log relevant flags (#104)
    
    Signed-off-by: Gao Hongtao <hanahm...@gmail.com>
---
 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)
        }

Reply via email to