Commit dd2d832
committed
fix: log worker crashes at warn level instead of debug
A worker script that dies after boot (non-zero exit status) currently logs
the same debug-level "restarting" message as a clean FRANKENPHP_LOOP_MAX
recycle. At the default log level a crash is therefore invisible: the
in-flight request surfaces as an empty 500, the application never gets to
log anything (the script died mid-request), and the exit status - the one
datum needed to triage the death - is only available by running the whole
server at debug level.
Up to v1.2.x these terminations were logged at error level with the
distinct message "unexpected termination, restarting" (see e.g. #774,
where that log line is how the reporter noticed the problem at all). This
restores that message at warn level, matching the other worker-failure
logs in tearDownWorkerScript, and keeps clean restarts at debug.
Also aligns the guard of the watcher-enabled boot-failure log with the
level it actually logs at (Enabled checked Error, LogAttrs wrote Warn).1 parent a765b08 commit dd2d832
3 files changed
Lines changed: 32 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
164 | | - | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
165 | 167 | | |
166 | 168 | | |
167 | 169 | | |
| |||
175 | 177 | | |
176 | 178 | | |
177 | 179 | | |
178 | | - | |
| 180 | + | |
179 | 181 | | |
180 | 182 | | |
181 | 183 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
115 | 127 | | |
116 | 128 | | |
117 | 129 | | |
| |||
0 commit comments