modify logger -> log

This commit is contained in:
yanghao05
2023-01-30 11:26:20 +08:00
parent f2c893709d
commit 3ab579fed7
10 changed files with 14 additions and 200 deletions

View File

@@ -6,7 +6,7 @@ import (
"atom/contracts"
"atom/providers/config"
"atom/providers/http"
"atom/providers/logger"
"atom/providers/log"
"go.uber.org/dig"
)
@@ -20,11 +20,11 @@ type Http struct {
}
func Serve(http Http) error {
logger.Infof("http service port %s", http.Conf.Http.Address())
log.Infof("http service port %s", http.Conf.Http.Address())
for _, route := range http.Routes {
route.Register()
}
logger.Infof("starting server on %s", http.Conf.Http.Address())
log.Infof("starting server on %s", http.Conf.Http.Address())
return http.Service.Serve()
}