CID
1240202 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
uninit_member: Non-static class member prio is not initialized
in this constructor nor in any functions that it calls.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
string msg;
string channel;
- LogEntry() : seq(0) {}
+ LogEntry() : seq(0), prio(CLOG_DEBUG) {}
LogEntryKey key() const { return LogEntryKey(who, stamp, seq); }
return out << "[DBG]";
case CLOG_INFO:
return out << "[INF]";
+ case CLOG_SEC:
+ return out << "[SEC]";
case CLOG_WARN:
return out << "[WRN]";
case CLOG_ERROR:
return out << "[ERR]";
- case CLOG_SEC:
- return out << "[SEC]";
default:
return out << "[???]";
}