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:
Barnabás Pőcze
2025-12-18 18:45:00 +01:00
parent 7d5321ac52
commit 140dd0de85

View File

@@ -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();