Skip to content

[9.0] Logging fix backport v9#8632

Merged
fstagni merged 3 commits into
DIRACGrid:rel-v9r0from
fstagni:logging_fix_v9
Jun 18, 2026
Merged

[9.0] Logging fix backport v9#8632
fstagni merged 3 commits into
DIRACGrid:rel-v9r0from
fstagni:logging_fix_v9

Conversation

@fstagni

@fstagni fstagni commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

No description provided.

fstagni added 3 commits June 18, 2026 11:04
The captureBackend() function assumed the StreamHandler was always at
index 0. When other tests modified handlers, the StreamHandler could be
at a different position, and the subsequent `del handlers[1:]` in
gLoggerReset() would remove it.

Modified captureBackend() to:
1. Find an existing StreamHandler and redirect its stream to the buffer
2. Move it to index 0 if it's not already there (so it survives del handlers[1:])
3. If no StreamHandler exists, create one at index 0
@fstagni fstagni requested a review from atsareg as a code owner June 18, 2026 09:07
@fstagni fstagni merged commit 14d4255 into DIRACGrid:rel-v9r0 Jun 18, 2026
35 of 37 checks passed
@DIRACGridBot DIRACGridBot added the sweep:ignore Prevent sweeping from being ran for this PR label Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sweep:ignore Prevent sweeping from being ran for this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants