-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add support for watchdog:show --exclude-type
#6148
Comments
You want Drush's output filtering feature. It is criminally underused. This use case is solved by |
Anyone is welcome to add another Example in Help with this info. |
Thanks for making me aware of the output filter in Drush, that is indeed very cool! I created an MR, which adds your example to the list of Watchdog help items, since that command is one where the |
Thanks, very fast! I just re-read the sentence, and realized that the filter feature, which is the main character here, is not mentioned ... Perhaps this would be better? Now:
Better?
|
Yes, its better. I have some sad news to report tho. Drush is moving even further toward a native Symfony Console setup and these example descriptions may be a casualty. See symfony/symfony#45050 |
Losing the examples under each Drush command would definitely be a setback ... it's so great to have them available right there when you need them. I hope, since Drupal and Drush are big players (I assume) in the Symfony world, that they may help steer Symfony in a direction where some kind of help feature can stay available in Drush. |
Oh, and about the little improvement, should I make a new PR, or can you do it directly? |
Is your feature request related to a problem? Please describe.
If you have installed a Drupal site in another language than English, you may get a lot of "English translation file not found" errors for all contrib modules (for example https://ftp.drupal.org/files/translations/all/metatag/metatag-2.0.2.en.po.) at every Cron run.
See Drupal install throwing "Translation file not found" notice for "en" langcode when "translate_english" is set to false.
These false positive entries can fill up the database log, and thereby
drush watchdog:show
output.Describe the solution you'd like
As a workaround, it would be nice to be able to exclude a type. For example:
This could also be a nice feature for example for Cron, which has a lot of entries.
Describe alternatives you've considered
You could enter all the other types, but that is clunky.
The text was updated successfully, but these errors were encountered: