Skip to content

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

@michaelfeil

Description

@michaelfeil
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))   

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions