fix vpn notification, add more logs under debug flag
This commit is contained in:
1 parent
d66be97922
commit
2dbc6ea1eb
17 files changed
+90
-27
No files matched your search
@@ -741,7 +741,9 @@ func (j *TelemostHeadlessJoiner) handleMessage(raw []byte) {
|
||||
}
|
||||
|
||||
if ud, ok := msg["updateDescription"]; ok {
|
||||
j.logFn("telemost-joiner: <- updateDescription %s", tmapi.BriefJSON(ud))
|
||||
if common.Debug {
|
||||
j.logFn("telemost-joiner: <- updateDescription %s", tmapi.BriefJSON(ud))
|
||||
}
|
||||
j.ack(uid)
|
||||
return
|
||||
}
|
||||
@@ -753,7 +755,9 @@ func (j *TelemostHeadlessJoiner) handleMessage(raw []byte) {
|
||||
}
|
||||
|
||||
if sc, ok := msg["slotsConfig"]; ok {
|
||||
j.logFn("telemost-joiner: <- slotsConfig %s", tmapi.BriefJSON(sc))
|
||||
if common.Debug {
|
||||
j.logFn("telemost-joiner: <- slotsConfig %s", tmapi.BriefJSON(sc))
|
||||
}
|
||||
needRebind := false
|
||||
presentPids := make(map[string]bool)
|
||||
for _, ev := range tmapi.SlotsConfigBindings(sc) {
|
||||
@@ -817,7 +821,9 @@ func (j *TelemostHeadlessJoiner) handleMessage(raw []byte) {
|
||||
if k == "uid" || k == "ack" {
|
||||
continue
|
||||
}
|
||||
j.logFn("telemost-joiner: <- %s (unhandled) %s", k, tmapi.BriefJSON(v))
|
||||
if common.Debug {
|
||||
j.logFn("telemost-joiner: <- %s (unhandled) %s", k, tmapi.BriefJSON(v))
|
||||
}
|
||||
break
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user