Skip to content

Attempt to fix the interactive logger#2446

Closed
Lalshivam wants to merge 1 commit into
ganga-devs:developfrom
Lalshivam:interactive-logger-fix
Closed

Attempt to fix the interactive logger#2446
Lalshivam wants to merge 1 commit into
ganga-devs:developfrom
Lalshivam:interactive-logger-fix

Conversation

@Lalshivam

@Lalshivam Lalshivam commented Jan 20, 2026

Copy link
Copy Markdown

The fix was straightforward and involved two key changes:

  1. Moved Finalisation Logs from INFO to DEBUG
    The noisy shutdown/finalisation messages that were spamming the interactive console were changed from logger.info()
    to logger.debug():

    -Before (spammy in interactive mode)
    log.info("Ganga is now attempting to shut down...")

    -After (only visible in DEBUG mode)
    log.debug("Ganga is now attempting to shut down...")

Why This Works:

-INFO level remains active in interactive mode (not globally suppressed)
-Important user messages still appear at INFO level
-Internal finalisation chatter is now at DEBUG level, only visible when debugging
-Users who need to see finalisation details can use --debug flag

This approach is cleaner than the previous workaround of suppressing all INFO logs globally, which broke legitimate INFO messages that users needed to see.

@mesmith75

Copy link
Copy Markdown
Contributor

All of these things we want to keep as info. These are not the ones related to the job finalisation I am afraid.

@egede

egede commented Mar 23, 2026

Copy link
Copy Markdown
Member

Please avoid AI generated PRs.

@egede egede closed this Mar 23, 2026
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.

3 participants