Skip to content

feat: Attribute etqdm log messages to the caller's source location. - #811

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_957426699
Open

feat: Attribute etqdm log messages to the caller's source location.#811
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_957426699

Conversation

@copybara-service

Copy link
Copy Markdown

feat: Attribute etqdm log messages to the caller's source location.

  • Upgrade _LogFile to capture the caller's file, line, and function via sys._getframe at construction time.
  • Emit log records with makeRecord so progress bar output attributes to the call site, not tqdm internals.
  • Add tests for source location capture, blank message suppression, and _LogFile injection on Borg.

- Upgrade `_LogFile` to capture the caller's file, line, and function via `sys._getframe` at construction time.
- Emit log records with `makeRecord` so progress bar output attributes to the call site, not tqdm internals.
- Add tests for source location capture, blank message suppression, and `_LogFile` injection on Borg.

PiperOrigin-RevId: 957426699
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.

1 participant