chore: update logger

This commit is contained in:
Steven
2023-11-07 07:43:18 +08:00
parent 67c3bbf1ee
commit 8faaf8ced1
2 changed files with 8 additions and 6 deletions

View File

@ -3,6 +3,7 @@ package server
import (
"context"
"fmt"
"log/slog"
"net"
"net/http"
"strings"
@ -132,7 +133,7 @@ func (s *Server) Start(ctx context.Context) error {
}
go func() {
if err := s.apiV2Service.GetGRPCServer().Serve(listen); err != nil {
println("grpc server listen error")
slog.Log(ctx, slog.LevelError, "failed to start grpc server")
}
}()