From c95b3937fef3e2c63768f1b3b1dc2c898f23d91d Mon Sep 17 00:00:00 2001 From: B Stack Date: Wed, 22 Jul 2020 11:37:03 -0400 Subject: add upstream 11.0 --- zen/error_log.h | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'zen/error_log.h') diff --git a/zen/error_log.h b/zen/error_log.h index ab23e33a..8604f127 100644 --- a/zen/error_log.h +++ b/zen/error_log.h @@ -19,16 +19,15 @@ namespace zen { enum MessageType { - MSG_TYPE_INFO = 0x1, - MSG_TYPE_WARNING = 0x2, - MSG_TYPE_ERROR = 0x4, - MSG_TYPE_FATAL_ERROR = 0x8, + MSG_TYPE_INFO = 0x1, + MSG_TYPE_WARNING = 0x2, + MSG_TYPE_ERROR = 0x4, }; struct LogEntry { time_t time = 0; - MessageType type = MSG_TYPE_FATAL_ERROR; + MessageType type = MSG_TYPE_ERROR; Zstringc message; //conserve memory (=> avoid std::string SSO overhead!) }; @@ -45,7 +44,6 @@ public: int info = 0; int warning = 0; int error = 0; - int fatal = 0; }; Stats getStats() const; @@ -91,11 +89,8 @@ ErrorLog::Stats ErrorLog::getStats() const case MSG_TYPE_ERROR: ++count.error; break; - case MSG_TYPE_FATAL_ERROR: - ++count.fatal; - break; } - assert(static_cast(entries_.size()) == count.info + count.warning + count.error + count.fatal); + assert(static_cast(entries_.size()) == count.info + count.warning + count.error); return count; } @@ -111,8 +106,6 @@ std::wstring getMessageTypeLabel(MessageType type) return _("Warning"); case MSG_TYPE_ERROR: return _("Error"); - case MSG_TYPE_FATAL_ERROR: - return _("Serious Error"); } assert(false); return std::wstring(); -- cgit