Skip to content

Commit

Permalink
Update the destination template not to use AirbyteLogger (#38199)
Browse files Browse the repository at this point in the history
  • Loading branch information
girarda authored May 15, 2024
1 parent 31c95da commit 464a89c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 464a89c

Please sign in to comment.