Skip to content

Commit

Permalink
CDK: fix logging configuration inside source and streams (airbytehq#7808
Browse files Browse the repository at this point in the history
)
  • Loading branch information
keu authored Nov 11, 2021
1 parent 70ed18b commit 3194927
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ repos:
args: ["--tmpl=LICENSE_SHORT", "--ext=py", "-f"]

- repo: https://github.com/ambv/black
rev: 20.8b1
rev: 21.10b0
hooks:
- id: black
args: ["--line-length=140"]
Expand Down
3 changes: 3 additions & 0 deletions airbyte-cdk/python/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 0.1.34
Fix logging inside source and streams

## 0.1.33
Resolve $ref fields for discover json schema.

Expand Down
2 changes: 1 addition & 1 deletion airbyte-cdk/python/airbyte_cdk/entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
class AirbyteEntrypoint(object):
def __init__(self, source: Source):
self.source = source
self.logger = logging.getLogger(f"source.{getattr(source, 'name', '')}")
self.logger = logging.getLogger(f"airbyte.{getattr(source, 'name', '')}")

def parse_args(self, args: List[str]) -> argparse.Namespace:
# set up parent parsers
Expand Down
2 changes: 1 addition & 1 deletion airbyte-cdk/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

setup(
name="airbyte-cdk",
version="0.1.33",
version="0.1.34",
description="A framework for writing Airbyte Connectors.",
long_description=README,
long_description_content_type="text/markdown",
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/groovy/airbyte-python.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class AirbytePythonPlugin implements Plugin<Project> {
scope = 'VIRTUALENV'
installVirtualenv = true
pip 'flake8:3.8.4'
pip 'black:20.8b1'
pip 'black:21.10b0'
pip 'mypy:0.812'
pip 'isort:5.6.4'
pip 'pytest:6.1.2'
Expand Down

0 comments on commit 3194927

Please sign in to comment.