1. dbt Labs Official Documentation
"Debugging errors": "The error message from dbt should point you in the right direction. If you're lucky
it will even include a line number where the error is occurring." This confirms that the primary source for error details
including line numbers
is the message output from the dbt run
which is captured in the logs.
Source: dbt Labs Documentation
Core > dbt-Core fundamentals > dbt-core Developer Hub > Guides > "Debugging errors".
2. dbt Labs Official Documentation
"Logging": "dbt writes events to two different places: stdout (the command line) and a log file (logs/dbt.log). By default
dbt will write INFO-level log messages and above to both of these locations." This establishes the log file as the canonical record of the run's output
including error tracebacks.
Source: dbt Labs Documentation
Core > dbt-Core fundamentals > dbt-core Developer Hub > Reference > "Logging".
3. dbt Labs Official Documentation
"run command": The documentation for the dbt run command details the output users can expect
which includes status updates and error messages for failed models. The example outputs clearly show that errors are printed directly to the console.
Source: dbt Labs Documentation
Core > dbt-Core fundamentals > dbt-core Developer Hub > Reference > dbt-Commands > run.