Logs Not Showing Up
Issue
While running the fivetran debug
command or the connector in production, 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 some 3rd party project, should not be used.
You can also refer to Connector SDK Technical Reference documentation page for the 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 incompatible logging level or different logging package.