chore: update server logger

This commit is contained in:
Steven
2024-03-06 00:43:13 +08:00
parent d866268a7a
commit 02fb415260
4 changed files with 53 additions and 12 deletions

View File

@@ -40,6 +40,7 @@ func NewAPIV2Service(secret string, profile *profile.Profile, store *store.Store
authProvider := NewGRPCAuthInterceptor(store, secret)
grpcServer := grpc.NewServer(
grpc.ChainUnaryInterceptor(
NewLoggerInterceptor().LoggerInterceptor,
authProvider.AuthenticationInterceptor,
),
)