Skip to content

Commit

Permalink
SimpleLogger::log: fix unintended fallthrough
Browse files Browse the repository at this point in the history
  • Loading branch information
yorickvP committed Aug 11, 2023
1 parent 2e5096e commit e78e9a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libutil/logging.cc
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class SimpleLogger : public Logger
case lvlWarn: c = '4'; break;
case lvlNotice: case lvlInfo: c = '5'; break;
case lvlTalkative: case lvlChatty: c = '6'; break;
case lvlDebug: case lvlVomit: c = '7';
case lvlDebug: case lvlVomit: c = '7'; break;
default: c = '7'; break; // should not happen, and missing enum case is reported by -Werror=switch-enum
}
prefix = std::string("<") + c + ">";
Expand Down

0 comments on commit e78e9a6

Please sign in to comment.