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/mcu/MCUTempSensor.cpp b/src/mcu/MCUTempSensor.cpp
index 16eeb9e..adefffc 100644
--- a/src/mcu/MCUTempSensor.cpp
+++ b/src/mcu/MCUTempSensor.cpp
@@ -53,8 +53,6 @@
 #include <linux/i2c-dev.h>
 }
 
-constexpr const bool debug = false;
-
 constexpr const char* sensorType = "MCUTempSensor";
 static constexpr double mcuTempMaxReading = 0xFF;
 static constexpr double mcuTempMinReading = 0;
@@ -182,11 +180,8 @@
         if (ret >= 0)
         {
             double v = static_cast<double>(temp) / 1000;
-            if constexpr (debug)
-            {
-                lg2::error("Value update to '{VALUE}' raw reading '{RAW}'",
-                           "VALUE", v, "RAW", temp);
-            }
+            lg2::debug("Value update to '{VALUE}' raw reading '{RAW}'", "VALUE",
+                       v, "RAW", temp);
             updateValue(v);
         }
         else
@@ -243,15 +238,12 @@
                     std::string sensorClass =
                         loadVariant<std::string>(cfg, "Class");
 
-                    if constexpr (debug)
-                    {
-                        lg2::error(
-                            "Configuration parsed for '{INTERFACE}' with Name: {NAME}, Bus: {BUS}, "
-                            "Address: {ADDRESS}, Reg: {REG}, Class: {CLASS}",
-                            "INTERFACE", intf, "NAME", name, "BUS", busId,
-                            "ADDRESS", mcuAddress, "REG", tempReg, "CLASS",
-                            sensorClass);
-                    }
+                    lg2::debug(
+                        "Configuration parsed for '{INTERFACE}' with Name: {NAME}, Bus: {BUS}, "
+                        "Address: {ADDRESS}, Reg: {REG}, Class: {CLASS}",
+                        "INTERFACE", intf, "NAME", name, "BUS", busId,
+                        "ADDRESS", mcuAddress, "REG", tempReg, "CLASS",
+                        sensorClass);
 
                     auto& sensor = sensors[name];