From 44eaf285e683e0c95a12662310890970306dfdb7 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Wed, 23 Mar 2022 14:46:30 +0200 Subject: [PATCH] Adjust outdated version logs --- main.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index fd66762..24a4be7 100644 --- a/main.go +++ b/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) }