Forráskód Böngészése

Adjust outdated version logs

Tulir Asokan 3 éve
szülő
commit
44eaf285e6
1 módosított fájl, 4 hozzáadás és 2 törlés
  1. 4 2
      main.go

+ 4 - 2
main.go

@@ -355,8 +355,10 @@ func (bridge *Bridge) CheckWhatsAppUpdate() {
 	if store.GetWAVersion() == resp.ParsedVersion {
 		bridge.Log.Debugfln("Bridge is using latest WhatsApp web protocol")
 	} else if store.GetWAVersion().LessThan(resp.ParsedVersion) {
-		if resp.IsBelowHard || resp.IsBelowSoft || 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)
+		if resp.IsBelowHard || resp.IsBroken {
+			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 {
 			bridge.Log.Debugfln("Bridge is using outdated WhatsApp web protocol (%s, latest is %s)", store.GetWAVersion(), resp.ParsedVersion)
 		}