From 34f9e1b80f336b944b41bc70dfef552199492807 Mon Sep 17 00:00:00 2001 From: Awawa <69086569+awawa-dev@users.noreply.github.com> Date: Tue, 13 Aug 2024 22:49:46 +0200 Subject: [PATCH] Revert "Add flatbuffers logging" This reverts commit 1b4a0761f3ad2a3fa418b3172309e1e5d7571265. --- .../flatbuffers/server/FlatBuffersServer.cpp | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/sources/flatbuffers/server/FlatBuffersServer.cpp b/sources/flatbuffers/server/FlatBuffersServer.cpp index 577b17b98..dd0b94322 100644 --- a/sources/flatbuffers/server/FlatBuffersServer.cpp +++ b/sources/flatbuffers/server/FlatBuffersServer.cpp @@ -284,8 +284,6 @@ void FlatBuffersServer::handlerImportFromProto(int priority, int duration, const void FlatBuffersServer::handlerImageReceived(int priority, FlatBuffersParser::FlatbuffersTransientImage* flatImage, int timeout_ms, hyperhdr::Components origin, QString clientDescription) { - static unsigned int logger = 0; - if (QThread::currentThread() != this->thread()) { Error(_log, "Sanity check. FlatBuffersServer::handlerImageReceived uses the wrong thread affiliation."); @@ -298,16 +296,8 @@ void FlatBuffersServer::handlerImageReceived(int priority, FlatBuffersParser::Fl { _currentLutPixelFormat = PixelFormat::RGB24; loadLutFile(); - logger = 0; } - if (logger++ < 10) - { - Debug(_log, "RGB flatbuffers frame (%i)", logger); - } - - - if (flatImage->size != flatImage->width * flatImage->height * 3) { Error(_log, "The RGB image data size does not match the width and height"); @@ -334,15 +324,8 @@ void FlatBuffersServer::handlerImageReceived(int priority, FlatBuffersParser::Fl flatImage->firstPlane.size, flatImage->firstPlane.stride, flatImage->secondPlane.size, flatImage->secondPlane.stride, flatImage->size, flatImage->width, flatImage->height); - logger = 0; } - if (logger++ < 10) - { - Debug(_log, "NV12 flatbuffers frame (%i)", logger); - } - - if (!_lutBufferInit) { Error(_log, "The LUT file is not loaded");