mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-10-19 14:17:20 +02:00
fix: count native resets and test deferred public downloads
This commit is contained in:
1 parent
37d10eed20
commit
66b71583d4
3 files changed
+15
-2
No files matched your search
@@ -8,6 +8,7 @@ function logSummary() {
|
||||
function observeLine(summary, line) {
|
||||
// Older releases rely on Node's stderr. New releases also emit a redacted
|
||||
// process_fatal_error event before Node terminates.
|
||||
if (/ECONNRESET|socket hang up/i.test(line)) summary.connectionResets++;
|
||||
const match = /^\S+ (INFO|WARN|ERROR) \[([^\]]+)\] .*? (\{.*\})$/.exec(line);
|
||||
if (!match) {
|
||||
if (/Unhandled ['"]error['"] event|unhandled(?:promise)?rejection|FATAL ERROR|heap out of memory/i.test(line)) summary.fatalErrors++;
|
||||
@@ -26,7 +27,6 @@ function observeLine(summary, line) {
|
||||
else summary.interrupted++;
|
||||
if (data.status === 429) summary.rateLimited++;
|
||||
}
|
||||
if (/ECONNRESET|socket hang up/i.test(line)) summary.connectionResets++;
|
||||
}
|
||||
async function readLogs(name, since) {
|
||||
const summary = logSummary();
|
||||
|
||||
Reference in new issue
Block a user