Skip to content

Commit

Permalink
feat(utils/logger): adding log system.
Browse files Browse the repository at this point in the history
  • Loading branch information
kehiy committed Jan 8, 2025
1 parent 1963bad commit 9be14a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions delivery/websocket/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ func New(cfg Config, h *repository.Handler, m *metrics.Metrics,
func (s *Server) Start() error {
go s.checkExpiration()

addr := net.JoinHostPort(s.config.Bind, //nolint
addr := net.JoinHostPort(s.config.Bind,
strconv.Itoa(int(s.config.Port)))

logger.Info("websocket server started", "listen", addr)

http.Handle("/", s)
err := http.ListenAndServe(addr, nil)
err := http.ListenAndServe(addr, nil) //nolint

return err
}
Expand Down

0 comments on commit 9be14a8

Please sign in to comment.