refactor: init log

This commit is contained in:
2026-04-04 20:35:41 +03:00
parent 4177c00e75
commit 02f6bb6813
5 changed files with 21 additions and 31 deletions
+11
View File
@@ -0,0 +1,11 @@
package app
import (
"github.com/lorsanstand/HomeOps-Hub/internal/shared/config"
"github.com/rs/zerolog"
)
type App struct {
cfg *config.Config
log *zerolog.Logger
}
-2
View File
@@ -2,7 +2,6 @@ package grpc
import (
"context"
"log"
"github.com/lorsanstand/HomeOps-Hub/api/gen/homeops"
"google.golang.org/protobuf/types/known/emptypb"
@@ -13,7 +12,6 @@ type Server struct {
}
func (s *Server) Ping(ctx context.Context, _ *emptypb.Empty) (*homeops.PongResponse, error) {
log.Println("Answer")
return &homeops.PongResponse{Pong: "Huiiii"}, nil
}