fix vpn notification, add more logs under debug flag

This commit is contained in:
kulikov0 committed 2026-07-25 12:23:41 +02:00
1 parent d66be97922
commit 2dbc6ea1eb
17 files changed
+90 -27

No files matched your search

+6 -2
View File
@@ -379,7 +379,9 @@ func (b *Bridge) handleMessage(raw []byte) {
}
if ud, ok := msg["updateDescription"]; ok {
log.Printf("[tm-ws] <- updateDescription %s", tmapi.BriefJSON(ud))
if common.Debug {
log.Printf("[tm-ws] <- updateDescription %s", tmapi.BriefJSON(ud))
}
udMap, _ := ud.(map[string]interface{})
descs, _ := udMap["description"].([]interface{})
b.applyDescriptionSnapshot(descs)
@@ -440,7 +442,9 @@ func (b *Bridge) handleMessage(raw []byte) {
}
if sc, ok := msg["slotsConfig"]; ok {
log.Printf("[tm-ws] <- slotsConfig %s", tmapi.BriefJSON(sc))
if common.Debug {
log.Printf("[tm-ws] <- slotsConfig %s", tmapi.BriefJSON(sc))
}
needRebind := false
presentPids := make(map[string]bool)
for _, ev := range tmapi.SlotsConfigBindings(sc) {