From 0e37dcde91afc4c633da40eb47887ec266314733 Mon Sep 17 00:00:00 2001 From: TheMarpe Date: Mon, 31 Jul 2023 14:37:42 +0200 Subject: [PATCH] Fixed device related logging --- src/device/DeviceBase.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/device/DeviceBase.cpp b/src/device/DeviceBase.cpp index 96076b747..a2bb2ddcb 100644 --- a/src/device/DeviceBase.cpp +++ b/src/device/DeviceBase.cpp @@ -602,6 +602,12 @@ void DeviceBase::init2(Config cfg, const dai::Path& pathToMvcmd, tl::optionallogger.debug("Device - BoardConfig: {} \nlibnop:{}", jBoardConfig.dump(), spdlog::to_hex(utility::serialize(config.board))); } @@ -738,7 +744,7 @@ void DeviceBase::init2(Config cfg, const dai::Path& pathToMvcmd, tl::optional lock(pimpl->rpcMutex); // Log the request data - if(logger::get_level() == spdlog::level::trace) { + if(getLogOutputLevel() == LogLevel::TRACE) { pimpl->logger.trace("RPC: {}", nlohmann::json::from_msgpack(request).dump()); } @@ -821,7 +827,6 @@ void DeviceBase::init2(Config cfg, const dai::Path& pathToMvcmd, tl::optionallogger.debug("Schema dump: {}", jSchema.dump()); nlohmann::json jAssets = assets;