Skip to content

Commit

Permalink
Update api.ws log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed May 13, 2024
1 parent 5889791 commit c950bb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/api/ws/ws.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func initWS(origin string) {
if o.Host == r.Host {
return true
}
log.Trace().Msgf("[api.ws] origin=%s, host=%s", o.Host, r.Host)
log.Trace().Msgf("[api] ws origin=%s, host=%s", o.Host, r.Host)
// https://github.com/AlexxIT/go2rtc/issues/118
if i := strings.IndexByte(o.Host, ':'); i > 0 {
return o.Host[:i] == r.Host
Expand Down Expand Up @@ -127,7 +127,7 @@ func apiWS(w http.ResponseWriter, r *http.Request) {
break
}

log.Trace().Str("type", msg.Type).Msg("[api.ws] msg")
log.Trace().Str("type", msg.Type).Msg("[api] ws msg")

if handler := wsHandlers[msg.Type]; handler != nil {
go func() {
Expand Down

0 comments on commit c950bb0

Please sign in to comment.