src: remove bool debug
Follow-up commit to the lg2 conversion.
Patching is not needed to get debug logs with lg2.
Tested: Inspection only.
Change-Id: Ie44b2debc7f4dff3a431a15f53720ae2da044a68
Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>
diff --git a/src/adc/ADCSensorMain.cpp b/src/adc/ADCSensorMain.cpp
index 7949280..ae1efb9 100644
--- a/src/adc/ADCSensorMain.cpp
+++ b/src/adc/ADCSensorMain.cpp
@@ -50,7 +50,6 @@
#include <variant>
#include <vector>
-static constexpr bool debug = false;
static constexpr float pollRateDefault = 0.5;
static constexpr float gpioBridgeSetupTimeDefault = 0.02;
@@ -169,11 +168,8 @@
}
if (sensorData == nullptr)
{
- if constexpr (debug)
- {
- lg2::error("failed to find match for '{PATH}'", "PATH",
- path.string());
- }
+ lg2::debug("failed to find match for '{PATH}'", "PATH",
+ path.string());
continue;
}