log: mark grpc messages with module
Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
parent
deb62729ba
commit
cd4f1f98d8
1 changed files with 7 additions and 2 deletions
|
@ -1,8 +1,13 @@
|
|||
package log
|
||||
|
||||
import "google.golang.org/grpc/grpclog"
|
||||
import (
|
||||
"golang.org/x/net/context"
|
||||
"google.golang.org/grpc/grpclog"
|
||||
)
|
||||
|
||||
func init() {
|
||||
ctx := WithModule(context.Background(), "grpc")
|
||||
|
||||
// completely replace the grpc logger with the logrus logger.
|
||||
grpclog.SetLogger(L)
|
||||
grpclog.SetLogger(G(ctx))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue