ldap-config: Include phosphor-logging in source files
It is recommendded to include the phosphor-logging and related headers
in source files instead of header files.
Tested:
Build and unit test pass.
Change-Id: I880d8a3bf8dd850af300806da0d17357407632fd
Signed-off-by: Jiaqing Zhao <jiaqing.zhao@intel.com>
diff --git a/phosphor-ldap-config/ldap_config_mgr.hpp b/phosphor-ldap-config/ldap_config_mgr.hpp
index 3b48127..4bd013a 100644
--- a/phosphor-ldap-config/ldap_config_mgr.hpp
+++ b/phosphor-ldap-config/ldap_config_mgr.hpp
@@ -4,15 +4,12 @@
#include "ldap_config.hpp"
-#include <phosphor-logging/elog-errors.hpp>
-#include <phosphor-logging/elog.hpp>
-#include <phosphor-logging/lg2.hpp>
#include <sdbusplus/bus.hpp>
-#include <xyz/openbmc_project/Common/error.hpp>
#include <xyz/openbmc_project/User/Ldap/Config/server.hpp>
#include <xyz/openbmc_project/User/Ldap/Create/server.hpp>
#include <string>
+
namespace phosphor
{
namespace ldap
@@ -25,8 +22,6 @@
static auto adDbusObjectPath =
std::string(LDAP_CONFIG_ROOT) + "/active_directory";
-using namespace phosphor::logging;
-using namespace sdbusplus::xyz::openbmc_project::Common::Error;
using CreateIface = sdbusplus::server::object_t<
sdbusplus::xyz::openbmc_project::User::Ldap::server::Create>;