user_channel: switch to lg2
Signed-off-by: George Liu <liuxiwei@ieisystem.com>
Change-Id: I80149836f196f01eb09cc874f74eec0d787b5ac5
diff --git a/user_channel/channel_layer.cpp b/user_channel/channel_layer.cpp
index 85c3426..02dd055 100644
--- a/user_channel/channel_layer.cpp
+++ b/user_channel/channel_layer.cpp
@@ -19,7 +19,7 @@
#include "channel_mgmt.hpp"
#include "cipher_mgmt.hpp"
-#include <phosphor-logging/log.hpp>
+#include <phosphor-logging/lg2.hpp>
namespace ipmi
{
@@ -34,8 +34,7 @@
if (stat(devName.data(), &fileStat) != 0)
{
- phosphor::logging::log<phosphor::logging::level::DEBUG>(
- "Ethernet device not found");
+ lg2::debug("Ethernet device not found");
return false;
}