Skip to content

Commit 067014a

Browse files
authored
refactor(source-sendgrid): Replace AirbyteLogger with logging.Logger (#38264)
1 parent a7406d0 commit 067014a

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

airbyte-integrations/connectors/source-sendgrid/metadata.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ data:
1010
connectorSubtype: api
1111
connectorType: source
1212
definitionId: fbb5fbe2-16ad-4cf4-af7d-ff9d9c316c87
13-
dockerImageTag: 1.0.0
13+
dockerImageTag: 1.0.1
1414
releases:
1515
breakingChanges:
1616
1.0.0:

airbyte-integrations/connectors/source-sendgrid/pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires = [ "poetry-core>=1.0.0",]
33
build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry]
6-
version = "1.0.0"
6+
version = "1.0.1"
77
name = "source-sendgrid"
88
description = "Source implementation for Sendgrid."
99
authors = [ "Airbyte <[email protected]>",]

airbyte-integrations/connectors/source-sendgrid/unit_tests/unit_test.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#
44

55
import json
6+
import logging
67
import os
78
import unittest
89
from unittest.mock import MagicMock, Mock, patch
@@ -11,7 +12,6 @@
1112
import pendulum
1213
import pytest
1314
import requests
14-
from airbyte_cdk.logger import AirbyteLogger
1515
from airbyte_cdk.models import SyncMode
1616
from numpy import nan
1717
from requests import codes
@@ -49,7 +49,7 @@ def mock_pendulum_now(monkeypatch):
4949

5050
def test_source_wrong_credentials():
5151
source = SourceSendgrid()
52-
status, error = source.check_connection(logger=AirbyteLogger(), config={"api_key": "wrong.api.key123"})
52+
status, error = source.check_connection(logger=logging.getLogger("airbyte"), config={"api_key": "wrong.api.key123"})
5353
assert not status
5454

5555

docs/integrations/sources/sendgrid.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,9 @@ The connector is restricted by normal Sendgrid [requests limitation](https://doc
8686

8787
| Version | Date | Pull Request | Subject |
8888
| :------ | :--------- | :------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
89-
| 1.0.0 | 2024-04-15 | [35776](https://github.com/airbytehq/airbyte/pull/35776) | Migration to low-code CDK. Breaking change that updates configuration keys, removes unsubscribe_groups stream, renames a stream to singlesend_stats, and adds the singlesends stream. |
90-
| 0.5.0 | 2024-03-26 | [36455](https://github.com/airbytehq/airbyte/pull/36455) | Unpin CDK version, add record counts to state messages |
89+
| 1.0.1 | 2024-05-20 | [38264](https://github.com/airbytehq/airbyte/pull/38264) | Replace AirbyteLogger with logging.Logger |
90+
| 1.0.0 | 2024-04-15 | [35776](https://github.com/airbytehq/airbyte/pull/35776) | Migration to low-code CDK. Breaking change that updates configuration keys, removes unsubscribe_groups stream, renames a stream to singlesend_stats, and adds the singlesends stream. |
91+
| 0.5.0 | 2024-03-26 | [36455](https://github.com/airbytehq/airbyte/pull/36455) | Unpin CDK version, add record counts to state messages |
9192
| 0.4.3 | 2024-02-21 | [35181](https://github.com/airbytehq/airbyte/pull/35343) | Handle uncompressed contacts downloads. |
9293
| 0.4.2 | 2024-02-12 | [35181](https://github.com/airbytehq/airbyte/pull/35181) | Manage dependencies with Poetry. |
9394
| 0.4.1 | 2023-10-18 | [31543](https://github.com/airbytehq/airbyte/pull/31543) | Base image migration: remove Dockerfile and use the python-connector-base image |

0 commit comments

Comments
 (0)