-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Improve the log of the updatedb command #3303
Conversation
Test fails as expected. Now committing the fix. |
So, i assume that #3302 should be closed, right? |
I've added 525f33b to log also the failures. |
This doesn't look right, now the messages are in the wrong order. The initial test proved that the output was there, and in the right place (during the execution):
With your patch the error is still there but in the wrong location. Can you give some more info on what you are trying to solve? Maybe you didn't have an exception but a different (uncatchable?) error? This issue is not about adding things to the log that are not already there, but about improving the existing messages so they are less confusing. If you are not seeing something important, we can best fix this in a separate issue.
No, #3302 is also a different scope, it's about making sure the log messages are appearing in the correct order. This is about improving the messages. |
I've discussed this with @claudiu-cristea. I'm going to revert this to the previous state so the PR and split off the missing exception to a separate issue. It seems that only exceptions in Follow up issue to fix the missing error message is #3308. A copy of the original fix by @claudiu-cristea is here: https://github.com/pfrenssen/drush/commits/missing-exception |
62195db
to
3e053bd
Compare
Discussed with @pfrenssen and I will review this PR tomorrow morning so it can be quickly ready for the 9 stable release. |
62195db
to
3e053bd
Compare
Good job! I rerolled the PR. @weitzman, @greg-1-anderson I've tested this on out project wit this PR the log messages improved. Good to go. |
Merged in #3310 |
This partially fixes #3296.
The output of the
updatedb
command can be quite confusing, since misleading messages are being output, and incorrect statuses are being communicated.Here is some example output from the current update test suite:
[ok]
associated with it.Edit: Note that the scope of this PR is solely to change the existing messages so they are less confusing. The order of the messages is being corrected in #3302, missing errors are in #3308.