From e9c48fbf394b9870baff30f86b1545e2c51de2ef Mon Sep 17 00:00:00 2001 From: Suresh Sundriyal Date: Wed, 20 May 2015 00:41:00 -0700 Subject: [PATCH] [log_format] Don't capture the sub-groups. I don't think there is any reason to capture the (OR) sub-group in ERR(OR) separately. --- src/log_format.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/log_format.cc b/src/log_format.cc index 7ca4f4f7..bfda5983 100644 --- a/src/log_format.cc +++ b/src/log_format.cc @@ -82,7 +82,7 @@ const char *logline::level_names[LEVEL__MAX + 1] = { }; static pcrepp LEVEL_RE( - "(?i)(TRACE|DEBUG\\d*|INFO|STATS|WARN(?:ING)?|ERR(OR)?|CRITICAL|SEVERE|FATAL)"); + "(?i)(TRACE|DEBUG\\d*|INFO|STATS|WARN(?:ING)?|ERR(?:OR)?|CRITICAL|SEVERE|FATAL)"); logline::level_t logline::string2level(const char *levelstr, ssize_t len, bool exact) {