|
117 | 117 | RepositoryRpcSearchModelsParameter, |
118 | 118 | SerializedLMSExtendedError, |
119 | 119 | ) |
120 | | -from ._logging import get_logger, LogEventContext, StructuredLogger |
| 120 | +from ._logging import new_logger, LogEventContext, StructuredLogger |
121 | 121 |
|
122 | 122 | # The sync and async modules publish the main SDK client API. |
123 | 123 | # From here, we publish everything that might be needed |
@@ -661,7 +661,7 @@ def __init__( |
661 | 661 | # Channel processing state tracking |
662 | 662 | self._is_finished = False |
663 | 663 | self._result: T | None = None |
664 | | - self._logger = logger = get_logger(type(self).__name__) |
| 664 | + self._logger = logger = new_logger(type(self).__name__) |
665 | 665 | logger.update_context(endpoint=self._API_ENDPOINT) |
666 | 666 |
|
667 | 667 | @property |
@@ -1602,7 +1602,7 @@ def __init__( |
1602 | 1602 | self._is_finished = False |
1603 | 1603 | self._channel_id = channel_id |
1604 | 1604 | self._endpoint = endpoint |
1605 | | - self._logger = logger = get_logger(type(self).__name__) |
| 1605 | + self._logger = logger = new_logger(type(self).__name__) |
1606 | 1606 | logger.update_context(log_context, channel_id=channel_id) |
1607 | 1607 |
|
1608 | 1608 | @property |
@@ -1688,7 +1688,7 @@ def __init__( |
1688 | 1688 | ) -> None: |
1689 | 1689 | """Initialize websocket remote procedure call.""" |
1690 | 1690 | self._call_id = call_id |
1691 | | - self._logger = logger = get_logger(type(self).__name__) |
| 1691 | + self._logger = logger = new_logger(type(self).__name__) |
1692 | 1692 | logger.update_context(log_context, call_id=call_id) |
1693 | 1693 | self._notice_prefix = notice_prefix |
1694 | 1694 |
|
@@ -1783,7 +1783,7 @@ def __init__( |
1783 | 1783 | """Initialize I/O independent websocket details.""" |
1784 | 1784 | self._ws_url = ws_url |
1785 | 1785 | self._auth_details = auth_details |
1786 | | - self._logger = logger = get_logger(type(self).__name__) |
| 1786 | + self._logger = logger = new_logger(type(self).__name__) |
1787 | 1787 | logger.update_context(log_context, ws_url=ws_url) |
1788 | 1788 | self._mux = MultiplexingManager(logger) |
1789 | 1789 | # Subclasses handle actually creating a websocket instance |
@@ -2055,7 +2055,7 @@ def __init__(self, model_identifier: str, session: TSession) -> None: |
2055 | 2055 | """Initialize the LM Studio model reference.""" |
2056 | 2056 | self.identifier = model_identifier |
2057 | 2057 | self._session = session |
2058 | | - self._logger = logger = get_logger(type(self).__name__) |
| 2058 | + self._logger = logger = new_logger(type(self).__name__) |
2059 | 2059 | logger.update_context(model_identifier=model_identifier) |
2060 | 2060 |
|
2061 | 2061 | def __repr__(self) -> str: |
|
0 commit comments