remove unused logger from room api handler.

This commit is contained in:
Miroslav Šedivý 2020-12-08 14:31:15 +01:00
parent 4b4ddcfe15
commit 58c8104ce6

View File

@ -2,15 +2,12 @@ package room
import ( import (
"github.com/go-chi/chi" "github.com/go-chi/chi"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
"demodesk/neko/internal/types" "demodesk/neko/internal/types"
"demodesk/neko/internal/http/auth" "demodesk/neko/internal/http/auth"
) )
type RoomHandler struct { type RoomHandler struct {
logger zerolog.Logger
sessions types.SessionManager sessions types.SessionManager
desktop types.DesktopManager desktop types.DesktopManager
capture types.CaptureManager capture types.CaptureManager
@ -21,13 +18,9 @@ func New(
desktop types.DesktopManager, desktop types.DesktopManager,
capture types.CaptureManager, capture types.CaptureManager,
) *RoomHandler { ) *RoomHandler {
logger := log.With(). // Init
Str("module", "api").
Str("submodule", "room").
Logger()
return &RoomHandler{ return &RoomHandler{
logger: logger,
sessions: sessions, sessions: sessions,
desktop: desktop, desktop: desktop,
capture: capture, capture: capture,