mirror of
https://github.com/linka-cloud/grpc.git
synced 2025-06-22 01:02:29 +00:00
logger: add WithReportCaller and Clone
Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
This commit is contained in:
@ -103,7 +103,7 @@ func run(opts ...service.Option) {
|
||||
secure := true
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
defer cancel()
|
||||
log := logger.New().WithFields("service", name)
|
||||
log := logger.New().WithFields("service", name).WithReportCaller(true)
|
||||
ctx = logger.Set(ctx, log)
|
||||
done := make(chan struct{})
|
||||
ready := make(chan struct{})
|
||||
|
Reference in New Issue
Block a user