File tree 2 files changed +6
-7
lines changed
2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,8 @@ package dep
2
2
3
3
import (
4
4
"github.com/google/wire"
5
- logger "github.com/lhdhtrc/logger-go/pkg"
6
5
task "github.com/lhdhtrc/task-go/pkg"
7
- "go-layout/internal/biz"
8
6
"go-layout/internal/conf"
9
- "go.uber.org/zap"
10
7
"google.golang.org/grpc"
11
8
"google.golang.org/grpc/credentials/insecure"
12
9
)
@@ -26,10 +23,6 @@ func NewTask(bc *conf.BootstrapConf) *task.Instance {
26
23
return task .New (bc .Task )
27
24
}
28
25
29
- func NewLogger (bc * conf.BootstrapConf , handle biz.ServerLogger ) * zap.Logger {
30
- return logger .New (bc .Logger , handle )
31
- }
32
-
33
26
func NewGrpcClient (bc * conf.BootstrapConf ) (* grpc.ClientConn , error ) {
34
27
var addr string
35
28
if bc .Gateway .Network == bc .Micro .Network {
Original file line number Diff line number Diff line change @@ -4,14 +4,20 @@ import (
4
4
"context"
5
5
"encoding/json"
6
6
"fmt"
7
+ logger "github.com/lhdhtrc/logger-go/pkg"
7
8
accessLogger "go-layout/dep/protobuf/gen/acme/logger/access/v1"
8
9
operationLogger "go-layout/dep/protobuf/gen/acme/logger/operation/v1"
9
10
serverLogger "go-layout/dep/protobuf/gen/acme/logger/server/v1"
10
11
"go-layout/internal/biz"
11
12
"go-layout/internal/conf"
13
+ "go.uber.org/zap"
12
14
"time"
13
15
)
14
16
17
+ func NewLogger (bc * conf.BootstrapConf , handle biz.ServerLogger ) * zap.Logger {
18
+ return logger .New (bc .Logger , handle )
19
+ }
20
+
15
21
func NewAccessLogger (bc * conf.BootstrapConf , service accessLogger.AccessLoggerServiceClient ) biz.AccessLogger {
16
22
return func (b []byte , msg string ) {
17
23
if bc .Logger .Console {
You can’t perform that action at this time.
0 commit comments