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

Disable logger module in pyhthon does not disable logging to console. #141

Open
michaelfeil opened this issue Oct 31, 2024 · 0 comments
Open

Comments

@michaelfeil
Copy link

self._posthog = Posthog(
                project_api_key=k,
                host="https://eu.i.posthog.com",
                disabled=self._posthog_disabled,
)

posthog_logger = logging.getLogger("posthog")
posthog_logger.disabled = True
Output:
INFO     2024-10-30 19:33:55,125 backoff INFO: Backing off send_request(...) for 0.7s                                _common.py:105
         (requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='eu.i.posthog.com', port=443): Read timed out.                 
         (read timeout=15))   
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

No branches or pull requests

1 participant