mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
remove unused logger from room api handler.
This commit is contained in:
parent
4b4ddcfe15
commit
58c8104ce6
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user