From 90130b5492e0505fd88113653f4a0668e8ab2a18 Mon Sep 17 00:00:00 2001 From: R4SAS Date: Fri, 11 Feb 2022 00:38:29 +0300 Subject: [PATCH] fix exception printing Signed-off-by: R4SAS --- libi2pd/util.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libi2pd/util.cpp b/libi2pd/util.cpp index 471366ea..ad957d0b 100644 --- a/libi2pd/util.cpp +++ b/libi2pd/util.cpp @@ -410,7 +410,7 @@ namespace net } catch (std::exception& ex) { - LogPrint(eLogError, "NetIface: Exception while searching address using ifaddr: ", ex); + LogPrint(eLogError, "NetIface: Exception while searching address using ifaddr: ", ex.what()); } if(addrs) freeifaddrs(addrs); @@ -511,7 +511,7 @@ namespace net } catch (std::exception& ex) { - LogPrint(eLogError, "NetIface: Exception while searching Yggdrasill address using ifaddr: ", ex); + LogPrint(eLogError, "NetIface: Exception while searching Yggdrasill address using ifaddr: ", ex.what()); } LogPrint(eLogWarning, "NetIface: Interface with Yggdrasil network address not found"); if(addrs) freeifaddrs(addrs);