Skip to content

Commit

Permalink
Tweak logging when joining room
Browse files Browse the repository at this point in the history
  • Loading branch information
davidzhao committed Feb 1, 2022
1 parent c18f745 commit 96657cf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cmd/livekit-cli/join.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@ func joinRoom(c *cli.Context) error {
return err
}

logger.Infow("connected to room", room.Name)
logger.Infow("connected to room", "room", room.Name)

done := make(chan os.Signal, 1)
signal.Notify(done, syscall.SIGINT, syscall.SIGTERM, syscall.SIGQUIT)
room.Callback.OnDataReceived = func(data []byte, rp *lksdk.RemoteParticipant) {
logger.Infow("received data", "bytes", len(data))
}
room.Callback.OnConnectionQualityChanged = func(update *livekit.ConnectionQualityInfo, p lksdk.Participant) {
logger.Infow("connection quality changed", "participant", p.Identity(), "quality", update.Quality)
logger.Debugw("connection quality changed", "participant", p.Identity(), "quality", update.Quality)
}
room.Callback.OnRoomMetadataChanged = func(metadata string) {
logger.Infow("room metadata changed", "metadata", metadata)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require (
github.com/ggwhite/go-masker v1.0.4
github.com/go-logr/stdr v1.2.0
github.com/livekit/protocol v0.11.5
github.com/livekit/server-sdk-go v0.8.4
github.com/livekit/server-sdk-go v0.8.5-0.20220201081656-5d302e6e57a3
github.com/pion/webrtc/v3 v3.1.19
github.com/urfave/cli/v2 v2.3.0
google.golang.org/protobuf v1.27.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ github.com/lithammer/shortuuid/v3 v3.0.7 h1:trX0KTHy4Pbwo/6ia8fscyHoGA+mf1jWbPJV
github.com/lithammer/shortuuid/v3 v3.0.7/go.mod h1:vMk8ke37EmiewwolSO1NLW8vP4ZaKlRuDIi8tWWmAts=
github.com/livekit/protocol v0.11.5 h1:1wArim3zmGgfvawXAs7Mo6Vu+xkW6z4q2EL2Gbr0A/c=
github.com/livekit/protocol v0.11.5/go.mod h1:YoHW9YbWbPnuVsgwBB4hAINKT+V68jmfh9zXBSSn6Wg=
github.com/livekit/server-sdk-go v0.8.4 h1:FJXXB3TOMHWOQgw+ak69NKL1CVLbzUDOEQAj4yiMw4c=
github.com/livekit/server-sdk-go v0.8.4/go.mod h1:stv9Na2txb6z6uMbjQCS5++ZGHRY6JmUX9jjcGSegQU=
github.com/livekit/server-sdk-go v0.8.5-0.20220201081656-5d302e6e57a3 h1:pchw+FZrnKYlT5fJYqrrATWsV3wzshrhmni5QWJrrd0=
github.com/livekit/server-sdk-go v0.8.5-0.20220201081656-5d302e6e57a3/go.mod h1:stv9Na2txb6z6uMbjQCS5++ZGHRY6JmUX9jjcGSegQU=
github.com/magefile/mage v1.11.0/go.mod h1:z5UZb/iS3GoOSn0JgWuiw7dxlurVYTu+/jHXqQg881A=
github.com/matttproud/golang_protobuf_extensions v1.0.1 h1:4hp9jkHxhMHkqkrB3Ix0jegS5sx/RkqARlsWZ6pIwiU=
github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0=
Expand Down

0 comments on commit 96657cf

Please sign in to comment.