Closed psimm closed 9 months ago
Describe the bug Please describe the issue.
Your environment
fal --version
fal, version 0.10.8
dbt --version
Core:
How to reproduce
Use logging.info() in a Python dbt model
import logging import pandas as pd def model(dbt, fal): logging.info("Running Python model") return pd.DataFrame({ "id": [1, 2, 3], "name": ["foo", "bar", "baz"] })
Expected behavior INFO level logs shown
Actual behavior DEBUG level logs shown, making it hard to follow the log. Setting a different log level using logging.basicConfig() doesn't fix it.
I've looked into this again and was able to fix it for me with logging.getLogger("file_log").setLevel(logging.WARNING). It's not a bug in dbt-fal, just my misunderstanding of how logging works.
logging.getLogger("file_log").setLevel(logging.WARNING)
Describe the bug Please describe the issue.
Your environment
fal, version 0.10.8
Core:
How to reproduce
Use logging.info() in a Python dbt model
Expected behavior INFO level logs shown
Actual behavior DEBUG level logs shown, making it hard to follow the log. Setting a different log level using logging.basicConfig() doesn't fix it.