use logx
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 15m24s

This commit is contained in:
2025-06-06 23:12:49 +08:00
parent b1934579c0
commit 9fa26bc026
3 changed files with 17 additions and 4 deletions

View File

@ -2,7 +2,6 @@ package main
import (
"flag"
"fmt"
"godemo/gallery/gallery"
"godemo/gallery/internal/config"
@ -10,6 +9,7 @@ import (
"godemo/gallery/internal/svc"
"github.com/zeromicro/go-zero/core/conf"
"github.com/zeromicro/go-zero/core/logx"
"github.com/zeromicro/go-zero/core/service"
"github.com/zeromicro/go-zero/zrpc"
"google.golang.org/grpc"
@ -34,6 +34,6 @@ func main() {
})
defer s.Stop()
fmt.Printf("Starting rpc server at %s...\n", c.ListenOn)
logx.Infof("Starting rpc server at %s...", c.ListenOn)
s.Start()
}