diff options
author | Ratan Gupta <ratagupt@linux.vnet.ibm.com> | 2018-11-27 15:05:54 +0530 |
---|---|---|
committer | Ratan Gupta <ratagupt@linux.vnet.ibm.com> | 2018-11-30 17:11:46 +0530 |
commit | 450b346910a7bcf9abde55d76693539a83bf33f7 (patch) | |
tree | ab98e391409c52e2da313ae90103571903faef06 | |
parent | 895f9e52ff097c5a229dc8ef1fb358a24b9a958f (diff) | |
download | phosphor-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.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |