dankgrinder 7.82.0 → 8.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/dashboard.js +269 -4
- package/lib/grinder.js +617 -157
- package/lib/rawLogger.js +2 -12
- package/package.json +1 -1
- package/lib/terminal.js +0 -717
package/lib/rawLogger.js
CHANGED
|
@@ -30,14 +30,7 @@ const memRing = [];
|
|
|
30
30
|
let memIdx = 0;
|
|
31
31
|
|
|
32
32
|
// ── Redis init ──
|
|
33
|
-
async function init(
|
|
34
|
-
// Support passing an existing Redis instance directly (preferred)
|
|
35
|
-
if (redisUrlOrInstance && typeof redisUrlOrInstance.status !== 'undefined') {
|
|
36
|
-
redis = redisUrlOrInstance;
|
|
37
|
-
redisReady = redis.status === 'ready';
|
|
38
|
-
return;
|
|
39
|
-
}
|
|
40
|
-
const redisUrl = redisUrlOrInstance;
|
|
33
|
+
async function init(redisUrl) {
|
|
41
34
|
if (!redisUrl) {
|
|
42
35
|
console.log('[rawLogger] No Redis URL — raw logging disabled');
|
|
43
36
|
return;
|
|
@@ -61,10 +54,7 @@ async function init(redisUrlOrInstance) {
|
|
|
61
54
|
redisReady = true;
|
|
62
55
|
console.log('[rawLogger] Redis connected');
|
|
63
56
|
redis.on('error', (e) => {
|
|
64
|
-
|
|
65
|
-
const msg = e?.message || '';
|
|
66
|
-
if (msg.includes('ETIMEDOUT') || msg.includes('ECONNRESET') || msg.includes('ENOTFOUND') || msg.includes('read') || msg.includes('connect')) return;
|
|
67
|
-
console.error(`[rawLogger] Redis error: ${msg}`);
|
|
57
|
+
console.error(`[rawLogger] Redis error: ${e.message}`);
|
|
68
58
|
redisReady = false;
|
|
69
59
|
});
|
|
70
60
|
redis.on('close', () => {
|