From 58c8104ce67ad5f7ded7c165f80828bfcb19e6e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Tue, 8 Dec 2020 14:31:15 +0100 Subject: [PATCH] remove unused logger from room api handler. --- internal/api/room/handler.go | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/internal/api/room/handler.go b/internal/api/room/handler.go index a073f7a0..67868a18 100644 --- a/internal/api/room/handler.go +++ b/internal/api/room/handler.go @@ -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, } }