()
| 253 | } |
| 254 | |
| 255 | function recentServiceLogLines() { |
| 256 | if (!localServiceLog) { |
| 257 | return ""; |
| 258 | } |
| 259 | try { |
| 260 | const data = fs.readFileSync(localServiceLog, "utf8"); |
| 261 | return data.split(/\r?\n/).filter(Boolean).slice(-20).join("\n"); |
| 262 | } catch { |
| 263 | return ""; |
| 264 | } |
| 265 | } |
| 266 | |
| 267 | async function maybeRestartLocalService(metadata) { |
| 268 | if (metadata.ok || stopped || !localUnavailableSince) { |
no outgoing calls
no test coverage detected