Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add swss-common log level support to GNMI service #330

Merged
merged 1 commit into from
Nov 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions telemetry/telemetry.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import (
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
"google.golang.org/grpc/keepalive"
"github.com/sonic-net/sonic-gnmi/swsscommon"
)

type ServerControlValue int
Expand Down Expand Up @@ -88,6 +89,9 @@ func runTelemetry(args []string) error {
return err
}

// enable swss-common debug level
swsscommon.LoggerLinkToDbNative("telemetry")

var wg sync.WaitGroup
// serverControlSignal channel is a channel that will be used to notify gnmi server to start, stop, restart, depending of syscall or cert updates
var serverControlSignal = make(chan ServerControlValue, 1)
Expand Down
Loading