Update the destination template not to use AirbyteLogger (#38199)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user