Skip to content

Docs: use valid severity in example usage#5246

Merged
weitzman merged 1 commit intodrush-ops:11.xfrom
hugovk:patch-1
Sep 20, 2022
Merged

Docs: use valid severity in example usage#5246
weitzman merged 1 commit intodrush-ops:11.xfrom
hugovk:patch-1

Conversation

@hugovk
Copy link
Contributor

@hugovk hugovk commented Sep 20, 2022

--severity=notice gives an error message:

$ drush watchdog:delete --severity=notice

In WatchdogCommands.php line 310:

  Unknown severity level: notice.
  Valid severity levels are: Emergency(0), Alert(1), Critical(2), Error(3), Warning(4), Notice(5), Info(6), Debug(7).

--severity=Notice works:

$ drush watchdog:delete --severity=Notice
All messages with severity = 5 will be deleted.

 Do you want to continue? (yes/no) [yes]:
 > yes

 [success] 184 watchdog messages have been deleted.

@weitzman weitzman enabled auto-merge (squash) September 20, 2022 13:01
@weitzman weitzman merged commit a6b2162 into drush-ops:11.x Sep 20, 2022
@hugovk hugovk deleted the patch-1 branch September 20, 2022 13:06
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

Successfully merging this pull request may close these issues.

2 participants