Browse Source

Merge pull request #1031 from bbarenblat/master

Handle invalid `Log::Class`
nce_cpp
Yuri Kunde Schlesner 11 years ago
parent
commit
86f72f80e1
  1. 3
      src/common/logging/backend.cpp

3
src/common/logging/backend.cpp

@ -66,8 +66,9 @@ const char* GetLogClassName(Class log_class) {
ALL_LOG_CLASSES() ALL_LOG_CLASSES()
#undef CLS #undef CLS
#undef SUB #undef SUB
case Class::Count:
UNREACHABLE();
} }
return "Unknown";
} }
const char* GetLevelName(Level log_level) { const char* GetLevelName(Level log_level) {

Loading…
Cancel
Save