Disable telemetry logs per default (#2463)

This commit is contained in:
tstadel 2022-04-26 20:28:12 +02:00 committed by GitHub
parent 7498c7c6fb
commit cc1bb9ad73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,6 +9,7 @@ import os
from typing import Any, Dict, List, Optional
import uuid
import logging
from logging import CRITICAL
from enum import Enum
from functools import wraps
from pathlib import Path
@ -29,6 +30,10 @@ user_id: Optional[str] = None
logger = logging.getLogger(__name__)
# disable posthog logging
logging.getLogger("posthog").setLevel(CRITICAL)
logging.getLogger("backoff").setLevel(CRITICAL)
class TelemetryFileType(Enum):
LOG_FILE: str = "LOG_FILE"