From de60b4fd2ac075ac5f75b4927dccea9951da355c Mon Sep 17 00:00:00 2001 From: Mark Stemm Date: Tue, 23 Jul 2019 18:40:11 -0700 Subject: [PATCH] Allow all lowercase priorities Just being tolerant given that the comparison used to be entirely case-insensitive. Signed-off-by: Mark Stemm --- userspace/engine/lua/rule_loader.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/userspace/engine/lua/rule_loader.lua b/userspace/engine/lua/rule_loader.lua index 6e1698f40f6..7422eeddaa3 100644 --- a/userspace/engine/lua/rule_loader.lua +++ b/userspace/engine/lua/rule_loader.lua @@ -63,8 +63,9 @@ end -- Permissive for case and for common abbreviations. priorities = { Emergency=0, Alert=1, Critical=2, Error=3, Warning=4, Notice=5, Informational=5, Debug=7, + emergency=0, alert=1, critical=2, error=3, warning=4, notice=5, informational=5, debug=7, EMERGENCY=0, ALERT=1, CRITICAL=2, ERROR=3, WARNING=4, NOTICE=5, INFORMATIONAL=5, DEBUG=7, - INFO=5 + INFO=5, info=5 } --[[