Skip to content

Commit

Permalink
DAOS-15686 gurt: Accept ERROR as a log mask string (#14211)
Browse files Browse the repository at this point in the history
A change further up in the stack revealed that "ERROR" wasn't
accepted as a log mask string at the engine level.

Signed-off-by: Kris Jacque <[email protected]>
  • Loading branch information
kjacque authored Apr 23, 2024
1 parent 874e439 commit 899cdd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gurt/dlog.c
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ static int d_log_str2pri(const char *pstr, size_t len)
* handle some quirks
*/

if (strncasecmp(pstr, "ERR", len) == 0)
if (strncasecmp(pstr, "ERR", len) == 0 || strncasecmp(pstr, "ERROR", len) == 0)
/* has trailing space in the array */
return DLOG_ERR;
if (((strncasecmp(pstr, "DEBUG", len) == 0) ||
Expand Down

0 comments on commit 899cdd2

Please sign in to comment.