Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
System
SDKs
Python SDK
Commits
675280cb
Commit
675280cb
authored
Oct 18, 2021
by
Spencer Sutton
Browse files
Updating logger param
parent
0f95a203
Pipeline
#72344
passed with stages
in 28 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
osdu_api/clients/base_client.py
View file @
675280cb
...
...
@@ -28,7 +28,7 @@ class BaseClient:
Base client that is meant to be extended by service specific clients
"""
def
__init__
(
self
,
config_manager
:
BaseConfigManager
=
None
,
data_partition_id
=
None
):
def
__init__
(
self
,
config_manager
:
BaseConfigManager
=
None
,
data_partition_id
=
None
,
logger
=
None
):
"""
Base client gets initialized with configuration values and a bearer token
based on provider-specific logic
...
...
@@ -38,7 +38,9 @@ class BaseClient:
if
self
.
use_service_principal
:
self
.
_refresh_service_principal_token
()
self
.
logger
=
logging
.
getLogger
(
__name__
)
self
.
logger
=
logger
if
self
.
logger
is
None
:
self
.
logger
=
logging
.
getLogger
(
__name__
)
def
_parse_config
(
self
,
config_manager
:
BaseConfigManager
=
None
,
data_partition_id
=
None
):
"""
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment