1
0
mirror of synced 2026-01-07 18:06:03 -05:00

Update the destination template not to use AirbyteLogger (#38199)

This commit is contained in:
Alexandre Girard
2024-05-15 13:48:58 -07:00
committed by GitHub
parent 31c95da499
commit 464a89c8a0

View File

@@ -2,10 +2,10 @@
# Copyright (c) {{currentYear}} Airbyte, Inc., all rights reserved.
#
import logging
from typing import Any, Iterable, Mapping
from airbyte_cdk import AirbyteLogger
from airbyte_cdk.destinations import Destination
from airbyte_cdk.models import AirbyteConnectionStatus, AirbyteMessage, ConfiguredAirbyteCatalog, Status
@@ -33,7 +33,7 @@ class Destination{{properCase name}}(Destination):
pass
def check(self, logger: AirbyteLogger, config: Mapping[str, Any]) -> AirbyteConnectionStatus:
def check(self, logger: logging.Logger, config: Mapping[str, Any]) -> AirbyteConnectionStatus:
"""
Tests if the input configuration can be used to successfully connect to the destination with the needed permissions
e.g: if a provided API token or password can be used to connect and write to the destination.