mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
fix logging.
This commit is contained in:
parent
45ee1eef3e
commit
2329a940c8
@ -80,18 +80,13 @@ func (manager *WebRTCManagerCtx) Start() {
|
|||||||
audio.RemoveListener(&audioListener)
|
audio.RemoveListener(&audioListener)
|
||||||
}
|
}
|
||||||
|
|
||||||
var servers []string
|
|
||||||
for _, server := range manager.config.ICEServers {
|
|
||||||
servers = append(servers, server.URLs...)
|
|
||||||
}
|
|
||||||
|
|
||||||
manager.logger.Info().
|
manager.logger.Info().
|
||||||
Str("icelite", fmt.Sprintf("%t", manager.config.ICELite)).
|
Bool("icelite", manager.config.ICELite).
|
||||||
Str("icetrickle", fmt.Sprintf("%t", manager.config.ICETrickle)).
|
Bool("icetrickle", manager.config.ICETrickle).
|
||||||
Str("iceservers", strings.Join(servers, ",")).
|
Interface("iceservers", manager.config.ICEServers).
|
||||||
Str("nat1to1", strings.Join(manager.config.NAT1To1IPs, ",")).
|
Str("nat1to1", strings.Join(manager.config.NAT1To1IPs, ",")).
|
||||||
Str("epr", fmt.Sprintf("%d-%d", manager.config.EphemeralMin, manager.config.EphemeralMax)).
|
Str("epr", fmt.Sprintf("%d-%d", manager.config.EphemeralMin, manager.config.EphemeralMax)).
|
||||||
Msgf("webrtc starting")
|
Msg("webrtc starting")
|
||||||
|
|
||||||
manager.curImage.Start()
|
manager.curImage.Start()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user