summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRatan Gupta <ratagupt@linux.vnet.ibm.com>2018-11-27 15:05:54 +0530
committerRatan Gupta <ratagupt@linux.vnet.ibm.com>2018-11-30 17:11:46 +0530
commit450b346910a7bcf9abde55d76693539a83bf33f7 (patch)
treeab98e391409c52e2da313ae90103571903faef06
parent895f9e52ff097c5a229dc8ef1fb358a24b9a958f (diff)
downloadphosphor-networkd-450b346910a7bcf9abde55d76693539a83bf33f7.tar.gz
phosphor-networkd-450b346910a7bcf9abde55d76693539a83bf33f7.zip
Don't report/commit the error
If unable to fetch the networkID from the IP address string This is kind of internal failure where reporting is not needed and no service action is associated with it. Change-Id: Ia54226f2dd77a69fd23433730c424ee0e3c6ac57 Signed-off-by: Ratan Gupta <ratagupt@linux.vnet.ibm.com>
-rw-r--r--util.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/util.cpp b/util.cpp
index 28f064c..35a6ed7 100644
--- a/util.cpp
+++ b/util.cpp
@@ -178,7 +178,7 @@ std::string getNetworkID(int addressFamily, const std::string& ipaddress,
{
log<level::ERR>("inet_pton failure",
entry("IPADDRESS=%s", ipaddress.c_str()));
- report<InternalFailure>();
+ elog<InternalFailure>();
return "";
}
@@ -198,7 +198,7 @@ std::string getNetworkID(int addressFamily, const std::string& ipaddress,
INET6_ADDRSTRLEN) == NULL)
{
log<level::ERR>("inet_ntop failure");
- report<InternalFailure>();
+ elog<InternalFailure>();
}
return networkString;
}
OpenPOWER on IntegriCloud