refactor: change system logging in hub

This commit is contained in:
lorsan
2026-05-04 08:52:13 +03:00
parent 4dfbe1ad7f
commit 8d9e748d7a
3 changed files with 14 additions and 18 deletions
+1 -1
View File
@@ -27,6 +27,7 @@ func NewApp() *App {
cfg, err := config.NewConfig()
if err != nil {
standartlog.Fatalf("failed get config: %v", err)
return nil
}
logger := log.NewLogger(cfg)
@@ -80,7 +81,6 @@ func (a *App) Run() {
func (a *App) hubServe(hubService *hub_service.HubService) error {
address := fmt.Sprintf("0.0.0.0:%v", a.cfg.Port)
a.log.Info().Str("address", address).Msg("starting gRPC server")
server := grpcserv.NewHubHandler(hubService, a.log)