Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): surface cloudflared FTL/PNC relay logs as warnings, not debug #5076

Mergedarhxam(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/5076/headmerged by maria-rcks View on GitHub

Showing 2 changed files with 13 additions and 1 deletion.

x
0 of 2 viewed, 2 left
9 additions and 0 deletionsapps/server/src/cloud/ManagedEndpointRuntime.test.tsModified
View file
@@ -96,6 +96,15 @@
"2026-06-17T02:00:00Z INF Starting metrics server",
),
).toBe("debug");
+ // FTL (fatal) and PNC (panic) are more severe than ERR and must surface.
+ expect(
+ ManagedEndpointRuntime.classifyRelayClientOutput(
+ "2026-06-17T02:00:00Z FTL Cannot determine default origin certificate path",
+ ),
+ ).toBe("warning");
+ expect(
+ ManagedEndpointRuntime.classifyRelayClientOutput("2026-06-17T02:00:00Z PNC runtime panic"),
+ ).toBe("warning");
});
​
it.effect("starts, deduplicates, rotates, and stops the Cloudflare connector", () =>
4 additions and 1 deletionapps/server/src/cloud/ManagedEndpointRuntime.tsModified
View file
@@ -72,7 +72,10 @@
if (/\bRegistered tunnel connection\b/iu.test(line)) {
return "connected";
- return /\b(?:ERR|WRN)\b/u.test(line) ? "warning" : "debug";
+ // cloudflared uses zerolog level tokens. FTL (fatal) and PNC (panic) are more
+ // severe than ERR, so they must surface at least as loudly — without them a
+ // fatal connector failure would be logged at debug and hidden.
+ return /\b(?:ERR|WRN|FTL|PNC)\b/u.test(line) ? "warning" : "debug";