fix(queue): stamp console.error payloads as level error - #7859
Conversation
Twenty-four queue failure logs used console.error with an explicit level:"warn", which made forwardStructuredLogToSentry treat real failures as warnings. Align them with the sink and the other console.error call sites in the same files. Closes JSONbored#7806 Co-authored-by: Cursor <cursoragent@cursor.com>
|
🚨 Contributor flagged. Click here for more info: Superagent Dashboard |
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7859 +/- ##
==========================================
- Coverage 91.37% 89.80% -1.57%
==========================================
Files 729 91 -638
Lines 74694 24496 -50198
Branches 22795 4862 -17933
==========================================
- Hits 68252 21999 -46253
+ Misses 5396 2232 -3164
+ Partials 1046 265 -781
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
Warning ⏸️ LoopOver review result - manual review recommendedReview updated: 2026-07-21 15:23:35 UTC
Review summary Nits — 5 non-blocking
Flagged checks (non-blocking)
Decision drivers
Context & advisory signals — never blocks the verdict
Linked issue satisfactionAddressed Review context
Contributor next steps
Signal definitions
🧪 Chat with LoopOverAsk LoopOver a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://loopover.ai/docs/loopover-commands 🧪 Experimental — new and may change. 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by LoopOver, a quiet PR intelligence layer for OSS maintainers.
|
Summary
console.error(JSON.stringify({ level: "warn", ... }))call sites in the queue pipeline tolevel: "error"so Sentry severity matches the error sink.level: "warn"insideconsole.errorpayloads in those three files.Closes #7806
Scope
src/queue/processors.ts,src/queue/slop-detection.ts,src/queue/ai-review-orchestration.tstest/unit/queue-console-error-level.test.tsValidation
vitest run test/unit/queue-console-error-level.test.tsgit diff --check origin/main...HEADSafety
Made with Cursor