Logs Not Showing Up
Issue
While running the fivetran debug
command for your Connector SDK connector, you do not see the logs added by you in your Python code.
Assume your Python code is similar to the following example:
from fivetran_connector_sdk import Connector, Operations as op, Logging as log # Fivetran's logging package
import logging # Python's native logging package
from xyz import Logging as xyz_log # Some 3rd party logging package
# Configure logging
logging.basicConfig(level=logging.DEBUG)
log = logging.getLogger(__name__)
...
Environment
Fivetran Connector SDK
Resolution
To resolve this issue, you must use the correct logging package. We support using only Fivetran's logging package. For example, in the Python code above, use log
from the first import (from fivetran_connector_sdk import Logging as log
). The second import, which imports Python's native logging
package, is not required. Similarly, the third import, which uses a third-party project, should not be used.
Refer to our Connector SDK Technical Reference documentation for information on the supported logging levels in our Logging package, ensuring that your logs have only the correct and supported logging levels.
Cause
This issue occurs when you use an incompatible logging level or an incorrect logging package.