From b9a9392f038b1fc6268882a320e9fe288d33eacc Mon Sep 17 00:00:00 2001 From: bergmann Date: Thu, 25 Jul 2019 22:25:40 +0200 Subject: [PATCH] * fixed bug in formatting of the 'line' property --- src/cpplogging/manager/consumer/formatting.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cpplogging/manager/consumer/formatting.cpp b/src/cpplogging/manager/consumer/formatting.cpp index 50d17c6..377c48e 100644 --- a/src/cpplogging/manager/consumer/formatting.cpp +++ b/src/cpplogging/manager/consumer/formatting.cpp @@ -633,21 +633,21 @@ void consumer::write_formatted(const log_entry& e, const format_type& f, std::os has_line_end = false; switch (i.format) { - case value_format::decimal: - os << e.line; - break; case value_format::hex_lower: os << std::hex << e.line << std::dec; break; - default: + case value_format::hex_upper: os << std::hex << std::uppercase << e.line << std::nouppercase << std::dec; break; + default: + os << e.line; + break; } break;