Skip to content

[8.0] Logging fix backporting#8631

Merged
fstagni merged 3 commits into
DIRACGrid:rel-v8r0from
fstagni:logging_fix_v8
Jun 18, 2026
Merged

[8.0] Logging fix backporting#8631
fstagni merged 3 commits into
DIRACGrid:rel-v8r0from
fstagni:logging_fix_v8

Conversation

@fstagni

@fstagni fstagni commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

No description provided.

fstagni added 3 commits June 18, 2026 10:59
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 merged commit 7a49e2a into DIRACGrid:rel-v8r0 Jun 18, 2026
22 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