(name, line, level)
| 423 | } |
| 424 | |
| 425 | function appendBootLog(name, line, level) { |
| 426 | const entry = { name, line, level }; |
| 427 | bootLog.push(entry); |
| 428 | if (bootLog.length > BOOT_LOG_MAX_LINES) { |
| 429 | bootLog.splice(0, bootLog.length - BOOT_LOG_MAX_LINES); |
| 430 | } |
| 431 | bootLogPending.push(entry); |
| 432 | if (!bootLogFlushTimer) { |
| 433 | bootLogFlushTimer = setTimeout(flushBootLog, BOOT_LOG_FLUSH_MS); |
| 434 | } |
| 435 | } |
| 436 | |
| 437 | function flushBootLog() { |
| 438 | clearTimeout(bootLogFlushTimer); |
no outgoing calls
no test coverage detected