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

Added channel complition logs #1204

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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 main.go
Original file line number Diff line number Diff line change
Expand Up @@ -337,9 +337,13 @@ func main() {

// TODO - cleaner shutdown across these channels
<-ctx.Done()
log.FromContext(ctx).Info("Application context is done: received OS signal")
<-srvErrCh
log.FromContext(ctx).Info("grpc server channel is closed")
<-vppErrCh
log.FromContext(ctx).Info("vpp channel is closed")
<-cleanupDoneCh
log.FromContext(ctx).Info("Cleanup channel is closed")
}

func setupDeviceMap(ctx context.Context, cfg *config.Config) map[string]string {
Expand Down
Loading