From 464a89c8a05da35d45b5292947ed4e158a2b323c Mon Sep 17 00:00:00 2001 From: Alexandre Girard Date: Wed, 15 May 2024 13:48:58 -0700 Subject: [PATCH] Update the destination template not to use AirbyteLogger (#38199) --- .../destination_{{snakeCase name}}/destination.py.hbs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/airbyte-integrations/connector-templates/destination-python/destination_{{snakeCase name}}/destination.py.hbs b/airbyte-integrations/connector-templates/destination-python/destination_{{snakeCase name}}/destination.py.hbs index e3094bd5fe20..7fbed94f263d 100644 --- a/airbyte-integrations/connector-templates/destination-python/destination_{{snakeCase name}}/destination.py.hbs +++ b/airbyte-integrations/connector-templates/destination-python/destination_{{snakeCase name}}/destination.py.hbs @@ -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.