modify logger -> log
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user