health: gateway-only status and stable reconnect
This commit is contained in:
@@ -183,12 +183,8 @@ export async function healthCommand(
|
||||
method: "health",
|
||||
timeoutMs: opts.timeoutMs,
|
||||
});
|
||||
const fatal =
|
||||
!summary.web.linked ||
|
||||
(summary.web.connect && !summary.web.connect.ok) ||
|
||||
(summary.telegram.configured &&
|
||||
summary.telegram.probe &&
|
||||
!summary.telegram.probe.ok);
|
||||
// Gateway reachability defines success; provider issues are reported but not fatal here.
|
||||
const fatal = false;
|
||||
|
||||
if (opts.json) {
|
||||
runtime.log(JSON.stringify(summary, null, 2));
|
||||
|
||||
@@ -218,7 +218,7 @@ export async function statusCommand(
|
||||
runtime.log(` ${line}`);
|
||||
}
|
||||
if (health) {
|
||||
runtime.log(info("WA connect: reported by gateway (no direct probe)"));
|
||||
runtime.log(info("Gateway health: reachable"));
|
||||
|
||||
const tgLine = health.telegram.configured
|
||||
? health.telegram.probe?.ok
|
||||
|
||||
Reference in New Issue
Block a user