From a929752bef26e02ccd103a5669a402ba2b5d5eec Mon Sep 17 00:00:00 2001 From: Ratan Gupta Date: Wed, 20 Feb 2019 15:47:32 +0530 Subject: Corrected the error log message. Change-Id: I682dda32c0482e0849289a70d5b3ffa624bb915d Signed-off-by: Ratan Gupta --- phosphor-ldap-config/ldap_configuration.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'phosphor-ldap-config') diff --git a/phosphor-ldap-config/ldap_configuration.cpp b/phosphor-ldap-config/ldap_configuration.cpp index 0ce4c61..a54db9b 100644 --- a/phosphor-ldap-config/ldap_configuration.cpp +++ b/phosphor-ldap-config/ldap_configuration.cpp @@ -359,7 +359,8 @@ void ConfigMgr::restartService(const std::string& service) } catch (const sdbusplus::exception::SdBusError& ex) { - log("Failed to restart nslcd service", + log("Failed to restart service", + entry("SERVICE=%s", service.c_str()), entry("ERR=%s", ex.what())); elog(); } @@ -376,7 +377,8 @@ void ConfigMgr::stopService(const std::string& service) } catch (const sdbusplus::exception::SdBusError& ex) { - log("Failed to stop nslcd service", + log("Failed to stop service", + entry("SERVICE=%s", service.c_str()), entry("ERR=%s", ex.what())); elog(); } -- cgit v1.2.1