Skip to content
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

Cannot set watchdog:show --severity-min level in English ("Warning"), when default language is something else #6004

Open
gitressa opened this issue May 13, 2024 · 0 comments

Comments

@gitressa
Copy link
Contributor

Describe the bug

If you have a Drupal installation in another language than English, you cannot define the severity level in English but have to use the installation language, or numbers.

To Reproduce

Run this command with default language Danish, and get an error:

$ drush watchdog:show --severity-min=Warning
In WatchdogCommands.php line 337: Unknown severity level: Warning
Valid severity levels are: Nødsituation(0), Advarsel(1), Kritisk(2), Fejl(3), Advarsel(4), Notifikation(5), Info(6), Debug(7).
Failed to run drush watchdog:show --severity-min=Warning: exit status 1

On the other hand, using a number, like this, works well:

$ drush watchdog:show --severity-min=4

Expected behavior

That I could use drush watchdog:show --severity-min=Warning even if the default language is not English.

Actual behavior

I got an error.

Workaround

Use a number for severity level.

System Configuration

Q A
Drush version? 12.5.1.0
Drupal version? 10.2.5
PHP version 8.1.27
OS? DDEV in Linux

Additional information
Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant