You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by ha...@apache.org on 2023/11/20 23:40:14 UTC

(skywalking-swck) branch patch-log created (now e7e89c8)

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

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


      at e7e89c8  Enable log relevant flags

This branch includes the following new commits:

     new e7e89c8  Enable log relevant flags

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(skywalking-swck) 01/01: Enable log relevant flags

Posted by ha...@apache.org.
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 <ha...@gmail.com>
AuthorDate: Mon Nov 20 23:36:07 2023 +0000

    Enable log relevant flags
    
    Signed-off-by: Gao Hongtao <ha...@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)
 	}