PEL: Use lg2 in DataInterface files

Modernize it a bit and it makes it easier to see debug traces which can
be done by just running the daemon from the command line.

Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: Ic0416222e29be0c6687b6d31cb6ca4feae2ad619
diff --git a/extensions/openpower-pels/data_interface.hpp b/extensions/openpower-pels/data_interface.hpp
index 57b1fe5..cd710ce 100644
--- a/extensions/openpower-pels/data_interface.hpp
+++ b/extensions/openpower-pels/data_interface.hpp
@@ -3,7 +3,7 @@
 #include "dbus_types.hpp"
 #include "dbus_watcher.hpp"
 
-#include <phosphor-logging/log.hpp>
+#include <phosphor-logging/lg2.hpp>
 #include <sdbusplus/bus.hpp>
 #include <sdbusplus/bus/match.hpp>
 
@@ -507,9 +507,8 @@
                 }
                 catch (const std::exception& e)
                 {
-                    using namespace phosphor::logging;
-                    log<level::ERR>("A host state change callback threw "
-                                    "an exception");
+                    lg2::error(
+                        "A host state change callback threw an exception");
                 }
             }
         }
@@ -529,8 +528,7 @@
             }
             catch (const std::exception& e)
             {
-                using namespace phosphor::logging;
-                log<level::ERR>("A FRU present callback threw an exception");
+                lg2::error("A FRU present callback threw an exception");
             }
         }
     }