-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FreshnessStatus.Error causes exit status of 1 but no error level logging. #2680
Comments
@wrgoldstein Thanks for the detailed writeup. I think there's a reason for the behavior here, but I'm not convinced that it's how we want it to be in the long run. In
Compare that to
@beckjake I'm inclined to say that |
I don't have any feelings either way. Historically, dbt's stance has been that there are really only two levels: I am in favor of accepting PRs that fix this, and this is probably a "good first issue". |
Hello, I would like to give this a try as a first contribution. Unless you're already on it, @wrgoldstein ? Just to be sure I'm going the right way, it seems to me that I should make |
I'm not! Go for it :) |
resolved by #2723 |
Describe the bug
When I run
dbt --log-format=json source snapshot-freshness
and there is aSourceFreshnessResult
withstatus = FreshnessStatus.Error: 'error'
, the log level of the output isINFO
but message has a redERROR
and the cli returns with status code 1.Steps To Reproduce
As far as I can tell this will happen with any stale snapshot when you run
dbt --log-format=json source snapshot-freshness
.Expected behavior
I expect the log level of the output to be error.
Screenshots and log output
System information
Which database are you using dbt with?
The output of
dbt --version
:The operating system you're using: MacOS Catalina
The output of
python --version
: 3.8.1Additional context
We parse the json output of a dbt run and report any ERROR level log statements to a monitoring tool, so this causes us to have a gap in our reporting.
Please let me know if I've mistaken a feature for a bug. Happy to contribute a fix if it is something that needs fixing.
The text was updated successfully, but these errors were encountered: