#3003 [BUG] flytekitplugins-dbt not logging std output
Issue created by
roek5803
### Describe the bug
When running a DBT task with the flytekit DBT plugin we expect it to log the std output so we can see what is happening. Looking at the code, the current implementation collects the logs from std output but will only print it in case of an error.
### Expected behavior
We would expect the library to print the std output of the DBT commands ideally with some controlling mechanism e.g. with a verbose flag.
### Additional context to reproduce
from flytekit import workflow
from flytekitplugins.dbt.task import DBTRun, DBTRunInput
dbt_task = DBTRun(name="the_name_of_the_task")
@workflow
def my_wf() -> None:
input = DBTRunInput(
project_dir="dbt_project_dir",
profiles_dir="dbt_project_dir/docker-context",
profile="default",
select=["some_model"]
)
dbt_task(input=input)
### Screenshots
No response
### Are you sure this issue hasn't been raised already?
• Yes
### Have you read the Code of Conduct?
• Yes
flyteorg/flyte