Repository navigation
Commit f1add90
fix(server): surface cloudflared FTL/PNC relay logs as warnings, not debug
`classifyRelayClientOutput` routes relay-connector (cloudflared) output to
"connected" / "warning" / "debug" log severities, treating only `ERR` and `WRN`
zerolog level tokens as warnings. cloudflared also emits `FTL` (fatal) and `PNC`
(panic) — both strictly more severe than `ERR` — and those fell through to
"debug", so a fatal connector failure (e.g. a bad origin certificate path or a
runtime panic that takes T3 Connect down) was logged at the quietest level and
effectively hidden while diagnosing an outage.
Add `FTL` and `PNC` to the warning set so the most severe relay failures surface
at least as loudly as ordinary errors. Extended the existing classifier test.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>1 parent e259dd2 commit f1add90
2 files changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
99 | 108 | | |
100 | 109 | | |
101 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
76 | 79 | | |
77 | 80 | | |
78 | 81 | | |
| |||
0 commit comments