mirror of
https://github.com/lorsanstand/HomeOps-Hub.git
synced 2026-06-19 20:05:17 +03:00
refactor: init log
This commit is contained in:
@@ -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,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
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user