forked from MirrorHub/mautrix-whatsapp
Adjust outdated version logs
This commit is contained in:
parent
f88abb99a8
commit
44eaf285e6
1 changed files with 4 additions and 2 deletions
6
main.go
6
main.go
|
@ -355,8 +355,10 @@ func (bridge *Bridge) CheckWhatsAppUpdate() {
|
||||||
if store.GetWAVersion() == resp.ParsedVersion {
|
if store.GetWAVersion() == resp.ParsedVersion {
|
||||||
bridge.Log.Debugfln("Bridge is using latest WhatsApp web protocol")
|
bridge.Log.Debugfln("Bridge is using latest WhatsApp web protocol")
|
||||||
} else if store.GetWAVersion().LessThan(resp.ParsedVersion) {
|
} else if store.GetWAVersion().LessThan(resp.ParsedVersion) {
|
||||||
if resp.IsBelowHard || resp.IsBelowSoft || resp.IsBroken {
|
if resp.IsBelowHard || resp.IsBroken {
|
||||||
bridge.Log.Warnfln("Bridge is using outdated WhatsApp web protocol and may no longer function (%s, latest is %s)", store.GetWAVersion(), resp.ParsedVersion)
|
bridge.Log.Warnfln("Bridge is using outdated WhatsApp web protocol and probably doesn't work anymore (%s, latest is %s)", store.GetWAVersion(), resp.ParsedVersion)
|
||||||
|
} else if resp.IsBelowSoft {
|
||||||
|
bridge.Log.Infofln("Bridge is using outdated WhatsApp web protocol (%s, latest is %s)", store.GetWAVersion(), resp.ParsedVersion)
|
||||||
} else {
|
} else {
|
||||||
bridge.Log.Debugfln("Bridge is using outdated WhatsApp web protocol (%s, latest is %s)", store.GetWAVersion(), resp.ParsedVersion)
|
bridge.Log.Debugfln("Bridge is using outdated WhatsApp web protocol (%s, latest is %s)", store.GetWAVersion(), resp.ParsedVersion)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue