mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2024-06-08 00:42:25 +02:00
Change log message if session was resumed.
This commit is contained in:
parent
1e11eac284
commit
5206490fef
|
@ -626,6 +626,7 @@ func (c *mcuProxyConnection) processMessage(msg *ProxyServerMessage) {
|
||||||
log.Printf("Hello connection to %s failed with %+v, reconnecting", c.url, msg.Error)
|
log.Printf("Hello connection to %s failed with %+v, reconnecting", c.url, msg.Error)
|
||||||
c.scheduleReconnect()
|
c.scheduleReconnect()
|
||||||
case "hello":
|
case "hello":
|
||||||
|
resumed := c.sessionId == msg.Hello.SessionId
|
||||||
c.sessionId = msg.Hello.SessionId
|
c.sessionId = msg.Hello.SessionId
|
||||||
country := ""
|
country := ""
|
||||||
if msg.Hello.Server != nil {
|
if msg.Hello.Server != nil {
|
||||||
|
@ -635,7 +636,9 @@ func (c *mcuProxyConnection) processMessage(msg *ProxyServerMessage) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
c.country.Store(country)
|
c.country.Store(country)
|
||||||
if country != "" {
|
if resumed {
|
||||||
|
log.Printf("Resumed session %s on %s", c.sessionId, c.url)
|
||||||
|
} else if country != "" {
|
||||||
log.Printf("Received session %s from %s (in %s)", c.sessionId, c.url, country)
|
log.Printf("Received session %s from %s (in %s)", c.sessionId, c.url, country)
|
||||||
} else {
|
} else {
|
||||||
log.Printf("Received session %s from %s", c.sessionId, c.url)
|
log.Printf("Received session %s from %s", c.sessionId, c.url)
|
||||||
|
|
Loading…
Reference in a new issue