Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor: Enhance logger warning with variable storage for broader compatibility #68

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ever3001
Copy link

@ever3001 ever3001 commented Jul 5, 2024

This PR addresses the issues raised in #66 and #20 regarding logging compatibility and message formatting.

Changes

  • Refactor logger warning to store the formatted message in a variable before logging

This change allows for easier integration with different logging libraries by separating the message formatting from the logging call. It also maintains backwards compatibility with existing setups.

- Store formatted warning message in variable before logging
- Ensure compatibility with structlog, loguru, and other logging libraries
- Maintain support for both Python 2 and Python 3
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.

2 participants