Oh and another one…
Sometimes if my dbt run
is resulting in an error, I like to cycle my logs/dbt.log
file before trying to run it again, to make debugging easier.
I have a pretty rudimentary bash function that does this for me:
function cycle_logs() {
suffix=$(date '+%Y-%m-%dT%H:%M:%S')
mv -v logs/dbt.log logs/dbt.log.${suffix}
}