Skip to content

Commit 10ddf2f

Browse files
committed
- Updated LOGGER_NAME to api_client and http_client mustache and .py files.
1 parent 3676973 commit 10ddf2f

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

okta/api_client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,15 @@
4242
from okta.api_response import ApiResponse, T as ApiResponseT
4343
from okta.call_info import CallInfo
4444
from okta.configuration import Configuration
45+
from okta.constants import LOGGER_NAME
4546
from okta.exceptions.exceptions import (
4647
ApiValueError,
4748
ApiException,
4849
)
4950

5051
RequestSerialized = Tuple[str, str, Dict[str, str], Optional[str], List[str]]
5152

52-
logger = logging.getLogger("okta-sdk-python")
53+
logger = logging.getLogger(LOGGER_NAME)
5354

5455

5556
class ApiClient:

okta/http_client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,12 @@
2929
import aiohttp
3030
import xmltodict
3131

32+
from okta.constants import LOGGER_NAME
3233
from okta.errors.http_error import HTTPError
3334
from okta.errors.okta_api_error import OktaAPIError
3435
from okta.exceptions import HTTPException, OktaAPIException
3536

36-
logger = logging.getLogger("okta-sdk-python")
37+
logger = logging.getLogger(LOGGER_NAME)
3738

3839

3940
def _remove_content_type_header(headers: dict) -> dict:

openapi/templates/api_client.mustache

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import {{packageName}}.models
3232
from {{packageName}} import rest
3333
from {{packageName}}.api_response import ApiResponse, T as ApiResponseT
3434
from {{packageName}}.call_info import CallInfo
35+
from {{packageName}}.constants import LOGGER_NAME
3536
from {{packageName}}.configuration import Configuration
3637
from {{packageName}}.exceptions.exceptions import (
3738
ApiValueError,
@@ -40,7 +41,7 @@ from {{packageName}}.exceptions.exceptions import (
4041

4142
RequestSerialized = Tuple[str, str, Dict[str, str], Optional[str], List[str]]
4243

43-
logger = logging.getLogger("okta-sdk-python")
44+
logger = logging.getLogger(LOGGER_NAME)
4445

4546

4647
class ApiClient:

openapi/templates/okta/http_client.mustache

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@ import os
1717
import aiohttp
1818
import xmltodict
1919

20+
from okta.constants import LOGGER_NAME
2021
from okta.errors.http_error import HTTPError
2122
from okta.errors.okta_api_error import OktaAPIError
2223
from okta.exceptions import HTTPException, OktaAPIException
2324

24-
logger = logging.getLogger("okta-sdk-python")
25+
logger = logging.getLogger(LOGGER_NAME)
2526

2627

2728
def _remove_content_type_header(headers: dict) -> dict:

0 commit comments

Comments
 (0)