Skip to content

Commit 73eb0c5

Browse files
Python(chore): remove default logger configuration to leave to implementation (#325)
1 parent 2c88ca7 commit 73eb0c5

2 files changed

Lines changed: 1 addition & 13 deletions

File tree

python/lib/sift_client/__init__.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,6 @@ async def get_asset_async():
203203
"""
204204

205205
import logging
206-
import sys
207206

208207
from sift_client.client import SiftClient
209208
from sift_client.transport import SiftConnectionConfig
@@ -213,11 +212,4 @@ async def get_asset_async():
213212
"SiftConnectionConfig",
214213
]
215214

216-
logger = logging.getLogger("sift_client")
217-
logging.basicConfig(
218-
level=logging.ERROR, format="%(asctime)s - %(name)s - %(levelname)s - %(message)s"
219-
)
220-
221-
222-
handler = logging.StreamHandler(sys.stdout)
223-
logger.addHandler(handler)
215+
logging.getLogger(__name__).addHandler(logging.NullHandler())

python/lib/sift_client/_internal/low_level_wrappers/assets.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from __future__ import annotations
22

3-
import logging
43
from typing import Any, cast
54

65
from sift.assets.v1.assets_pb2 import (
@@ -20,9 +19,6 @@
2019
from sift_client.sift_types.asset import Asset, AssetUpdate
2120
from sift_client.transport import GrpcClient, WithGrpcClient
2221

23-
# Configure logging
24-
logger = logging.getLogger(__name__)
25-
2622

2723
class AssetsLowLevelClient(LowLevelClientBase, WithGrpcClient):
2824
"""Low-level client for the AssetsAPI.

0 commit comments

Comments
 (0)