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