reduce logging and make format

pull/815/head
Jeff Becker 5 years ago
parent ff233204cd
commit 61ade40a51
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -102,7 +102,7 @@ llarp_ev_add_tun(struct llarp_ev_loop *loop, struct llarp_tun_io *tun)
{
LogError("invalid ifname on tun: ", tun->ifname);
return false;
}
}
#if !defined(_WIN32)
return loop->tun_listen(tun);
#else

@ -733,11 +733,6 @@ namespace llarp
m_Exit->QueueUpstreamTraffic(std::move(pkt),
llarp::routing::ExitPadSize);
}
else
{
llarp::LogWarn(Name(), " has no endpoint for ", dst);
llarp::DumpBuffer(pkt.ConstBuffer());
}
return;
}
if(m_SNodes.at(itr->second))

@ -356,7 +356,8 @@ namespace llarp
Router::FromConfig(Config *conf)
{
// Set netid before anything else
if(!conf->router.netId().empty() && strcmp(conf->router.netId().c_str(), Version::LLARP_NET_ID))
if(!conf->router.netId().empty()
&& strcmp(conf->router.netId().c_str(), Version::LLARP_NET_ID))
{
const auto &netid = conf->router.netId();
llarp::LogWarn("!!!! you have manually set netid to be '", netid,
@ -1174,7 +1175,7 @@ namespace llarp
}
else
{
LogWarn("Message failed sending to ", remote);
LogDebug("Message failed sending to ", remote);
}
}
} // namespace llarp

@ -250,7 +250,7 @@ namespace llarp
bool
RouterContact::IsExpired(llarp_time_t now) const
{
(void) now;
(void)now;
return false;
// return Age(now) >= Lifetime;
}

Loading…
Cancel
Save