libcamera: base: log: Do not check severity before printing
Now that the severity of the log message and the category is compared in the expansion of the `LOG()` macro, there is no need to do it again in the destructor. Signed-off-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
@@ -867,8 +867,7 @@ LogMessage::~LogMessage()
|
||||
|
||||
msgStream_ << std::endl;
|
||||
|
||||
if (severity_ >= category_.severity())
|
||||
logger->write(*this);
|
||||
logger->write(*this);
|
||||
|
||||
if (severity_ == LogSeverity::LogFatal) {
|
||||
logger->backtrace();
|
||||
|
||||
Reference in New Issue
Block a user