Skip to content

Commit

Permalink
🐛 CDK: Apply log level on the entrypoint's logger (#32410)
Browse files Browse the repository at this point in the history
  • Loading branch information
girarda authored Nov 15, 2023
1 parent 33ca41b commit 0f94afe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions airbyte-cdk/python/airbyte_cdk/entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ def run(self, parsed_args: argparse.Namespace) -> Iterable[str]:

if hasattr(parsed_args, "debug") and parsed_args.debug:
self.logger.setLevel(logging.DEBUG)
logger.setLevel(logging.DEBUG)
self.logger.debug("Debug logs enabled")
else:
self.logger.setLevel(logging.INFO)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
CLOUD_DEPLOYMENT_MODE = "cloud"


def is_cloud_environment():
def is_cloud_environment() -> bool:
"""
Returns True if the connector is running in a cloud environment, False otherwise.
Expand Down

0 comments on commit 0f94afe

Please sign in to comment.