Merge pull request #237 from sureshsundriyal/minor_fix

[log_format] Don't capture the sub-groups.
This commit is contained in:
Suresh Sundriyal 2015-05-20 07:36:34 -07:00
commit b822a997f5

View File

@ -82,7 +82,7 @@ const char *logline::level_names[LEVEL__MAX + 1] = {
}; };
static pcrepp LEVEL_RE( 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) logline::level_t logline::string2level(const char *levelstr, ssize_t len, bool exact)
{ {