Merge pull request #139 from rumpl/feat-log-stream

Implement gRPC logging
This commit is contained in:
Djordje Lukic 2020-05-22 06:23:47 -07:00 committed by GitHub
commit de33f183df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 510 additions and 114 deletions

View file

@ -49,9 +49,7 @@ func runServe(ctx context.Context, opts serveOpts) error {
p := proxy.NewContainerAPI()
containersv1.RegisterContainersServer(s, p)
cliv1.RegisterCliServer(s, &cliServer{
ctx,
})
cliv1.RegisterCliServer(s, &cliServer{})
go func() {
<-ctx.Done()
@ -66,7 +64,6 @@ func runServe(ctx context.Context, opts serveOpts) error {
}
type cliServer struct {
ctx context.Context
}
func (cs *cliServer) Contexts(ctx context.Context, request *cliv1.ContextsRequest) (*cliv1.ContextsResponse, error) {