Skip to content

fix: use instance logger instead of root logger in process()#46

Draft
hussein-awala wants to merge 1 commit intomainfrom
fix/use-instance-logger
Draft

fix: use instance logger instead of root logger in process()#46
hussein-awala wants to merge 1 commit intomainfrom
fix/use-instance-logger

Conversation

@hussein-awala
Copy link
Copy Markdown
Owner

Summary

  • process() used logging.debug(item) which logs to the root logger and eagerly evaluates the item repr
  • Changed to self.logger.debug("Processing item: %s", item) for:
    • Consistent use of the class-level logger (async_batcher.batcher)
    • Lazy string formatting (avoids repr cost when debug is disabled)

Test plan

  • All existing unit tests pass

🤖 Generated with Claude Code

process() used logging.debug(item) which logs to the root logger
and eagerly evaluates the item repr. Changed to self.logger.debug
with lazy % formatting for consistent logging and better performance.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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