This commit is contained in:
Uwe Seimet 2021-08-26 11:28:28 +02:00
parent a58a1cda15
commit 3db5d1dc4d

View File

@ -164,18 +164,18 @@ bool CTapDriver::Init()
string interface; string interface;
for (const auto& iface : interfaces) { for (const auto& iface : interfaces) {
ostringstream error; ostringstream msg;
if (is_interface_up(iface)) { if (is_interface_up(iface)) {
error << "Interface " << iface << " is up"; msg << "Interface " << iface << " is up";
LOGTRACE("%s", error.str().c_str()); LOGTRACE("%s", msg.str().c_str());
interface = iface; interface = iface;
break; break;
} }
else { else {
error << "Interface " << iface << " is not up"; msg << "Interface " << iface << " is not up";
LOGTRACE("%s", error.str().c_str()); LOGTRACE("%s", msg.str().c_str());
} }
} }