Skip to content

fix(#1984): gate the GG SPLICE FUNCS trace behind --debug - #2384

Merged
squid-protocol merged 1 commit into
mainfrom
fix/issue-1984-debug-print
Aug 28, 2026
Merged

fix(#1984): gate the GG SPLICE FUNCS trace behind --debug#2384
squid-protocol merged 1 commit into
mainfrom
fix/issue-1984-debug-print

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Closes #1984.

galaxyscope.py's _process_file_worker had a bare
print("GG SPLICE FUNCS:", [f["name"] for f in ...]) sitting next to the
# --- INJECTED DEBUG TRACE --- marker. It fired unconditionally on every
file of every real scan — straight to stdout, including CI logs (visible
flooding crucible_check.py output during this session).

Converted to a logger.debug [WORKER-TRACE] line matching the two
logger.debug(f"[WORKER-TRACE] ...") calls that already bracket it,
guarded by logger.isEnabledFor(logging.DEBUG) (the same pattern
language_lens.py uses) so the list comprehension is skipped entirely
when not tracing.

Cosmetic/noise only — no output-correctness change. test_galaxyscope.py
46/46 pass; ruff / mypy / dead-key / ast-accuracy clean.

🤖 Generated with Claude Code

galaxyscope.py's worker had a bare print("GG SPLICE FUNCS:", ...) next to
the "# --- INJECTED DEBUG TRACE ---" marker, firing unconditionally on
every file of every real scan (and into CI logs). Convert it to a
logger.debug [WORKER-TRACE] line matching its neighbours, guarded by
isEnabledFor(DEBUG) so the list comp is skipped when not tracing.

Closes #1984.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol merged commit 93aaec8 into main Aug 28, 2026
28 checks passed
@squid-protocol
squid-protocol deleted the fix/issue-1984-debug-print branch August 28, 2026 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Leftover debug print("GG SPLICE FUNCS", ...) in galaxyscope.py fires on every real scan

1 participant