Cleanup old logging headers and namespaces
Remove the header includes for the old phosphor::logging::log API
as well as unnecessary phosphor::logging namespace declarations.
Fully qualify phosphor::logging namespace where applicable and/or
needed.
Tested:
* Verified commit passed CI unit tests.
* Verified commit built using bitbake.
Change-Id: Ibf35b653192054e8654366ee09842992a598d9af
Signed-off-by: Anwaar Hadi <anwaar.hadi@ibm.com>
diff --git a/phosphor-power-supply/util.hpp b/phosphor-power-supply/util.hpp
index 58bab67..dc28ffe 100644
--- a/phosphor-power-supply/util.hpp
+++ b/phosphor-power-supply/util.hpp
@@ -41,7 +41,6 @@
void setPresence(sdbusplus::bus_t& bus, const std::string& invpath,
bool present, const std::string& name) const override
{
- using namespace phosphor::logging;
lg2::info("Updating inventory present property. "
"present:{PRESENT} invpath:{INVPATH} name:{NAME}",
"PRESENT", present, "INVPATH", invpath, "NAME", name);
@@ -81,7 +80,7 @@
lg2::error(
"Error in inventory manager call to update inventory: {ERROR}",
"ERROR", e);
- elog<InternalFailure>();
+ phosphor::logging::elog<InternalFailure>();
}
}
@@ -110,7 +109,6 @@
}
catch (const sdbusplus::exception_t& e)
{
- using namespace phosphor::logging;
lg2::error("Error in inventory manager call to update "
"availability interface: {ERROR}",
"ERROR", e);
@@ -181,7 +179,6 @@
}
catch (const sdbusplus::exception_t& e)
{
- using namespace phosphor::logging;
lg2::info("Error trying to handle health rollup "
"associations for {INVPATH}: {ERROR}",
"INVPATH", invpath, "ERROR", e);