libcamera: base: log: Remove LogInvalid check

A `LogMessage` instance cannot be moved or copied, so a severity of
`LogInvalid` is only possible if the message was constructed with that
log level explicitly. However, being a completely internal type, this
does not occur. So remove the check. And even if it does, it's probably
still better to print the message than to drop it silently.

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:46:24 +01:00
parent 140dd0de85
commit 75c963146e

View File

@@ -857,10 +857,6 @@ LogMessage::LogMessage(const char *fileName, unsigned int line,
LogMessage::~LogMessage()
{
/* Don't print anything if we have been moved to another LogMessage. */
if (severity_ == LogInvalid)
return;
Logger *logger = Logger::instance();
if (!logger)
return;