fix(ex05): use uppercase level specifiers
This commit is contained in:
parent
fd476b2c63
commit
3fa6069da8
2 changed files with 8 additions and 8 deletions
|
|
@ -5,10 +5,10 @@ typedef void (Harl::*HarlComplaint)(void);
|
|||
|
||||
int getLevelIdx(std::string level) {
|
||||
static const std::string levels[] = {
|
||||
"debug",
|
||||
"info",
|
||||
"warning",
|
||||
"error",
|
||||
"DEBUG",
|
||||
"INFO",
|
||||
"WARNING",
|
||||
"ERROR",
|
||||
};
|
||||
for (int i = 0; i < 4; i++) {
|
||||
if (level == levels[i])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue