Commit ed8ac48
committed
fix: improve background-worker boot-failure logs
Background workers inherited the HTTP-worker wording which mentioned
frankenphp_handle_request — that function doesn't apply to bg workers.
The ready signal for a bg worker is frankenphp_set_vars.
- startupFailChan error: "background worker %s has not reached frankenphp_set_vars()"
- Warn log (watcher): "(watcher enabled) background worker has not reached frankenphp_set_vars()"
- Warn log (normal): "background worker boot failed, restarting"
The log now also carries exit_status and, when captured, the last PHP
error message from bootFailureInfo. Tailing the FrankenPHP log at Warn
level is enough to see what went wrong without reading the PHP error
log separately.1 parent 82f7a0e commit ed8ac48
1 file changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
| 209 | + | |
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
214 | 220 | | |
215 | 221 | | |
216 | | - | |
| 222 | + | |
217 | 223 | | |
218 | 224 | | |
219 | 225 | | |
220 | | - | |
| 226 | + | |
221 | 227 | | |
222 | 228 | | |
223 | 229 | | |
| |||
0 commit comments