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 (
"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
@ -21,13 +18,9 @@ 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,