Use sdbusplus errName instead of phosphor errName in commit

Change-Id: I2e5e1add72ee4fa29ecb8e858b101bbd648aeeec
Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
diff --git a/phosphor-logging/elog.hpp b/phosphor-logging/elog.hpp
index 041303e..8a6b9c1 100644
--- a/phosphor-logging/elog.hpp
+++ b/phosphor-logging/elog.hpp
@@ -112,7 +112,7 @@
         std::is_base_of<sdbusplus::exception::exception, T>::value,
         "T must be a descendant of sdbusplus::exception::exception"
     );
-    details::commit(details::map_exception_type_t<T>::errName);
+    details::commit(T::errName);
 }