We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6b6d87 commit e870944Copy full SHA for e870944
CHANGES.md
@@ -17,6 +17,8 @@
17
- @voluntas
18
- [ADD] リリースバイナリに linux arm64 を追加する
19
20
+- [CHANGE] debug 設定が有効な場合にのみ、signaling.log に受信したシグナリングの生データを出力するように変更する
21
+ - @Hexa
22
23
## 2023.2.0
24
connection_log.go
@@ -7,12 +7,21 @@ import (
7
8
func (c *connection) signalingLog(message message, rawMessage []byte) {
9
if message.Type != "pong" {
10
- c.signalingLogger.Log().
11
- Str("roomId", c.roomID).
12
- Str("clientID", c.clientID).
13
- Str("connectionId", c.ID).
14
- Str("type", message.Type).
15
- Msg(string(rawMessage))
+ if c.config.Debug {
+ c.signalingLogger.Log().
+ Str("roomId", c.roomID).
+ Str("clientID", c.clientID).
+ Str("connectionId", c.ID).
+ Str("type", message.Type).
16
+ Msg(string(rawMessage))
+ } else {
+ Send()
+ }
25
}
26
27
0 commit comments