mirror of
https://github.com/oxen-io/lokinet
synced 2023-12-14 06:53:00 +01:00
Fix log warning
This commit is contained in:
parent
ab11a8128d
commit
66c79b232a
|
@ -21,6 +21,8 @@ static const std::string RC_FILE_EXT = ".signed";
|
||||||
|
|
||||||
namespace llarp
|
namespace llarp
|
||||||
{
|
{
|
||||||
|
static auto logcat = log::Cat("nodedb");
|
||||||
|
|
||||||
NodeDB::Entry::Entry(RouterContact value) : rc(std::move(value)), insertedAt(llarp::time_now_ms())
|
NodeDB::Entry::Entry(RouterContact value) : rc(std::move(value)), insertedAt(llarp::time_now_ms())
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
@ -160,7 +162,7 @@ namespace llarp
|
||||||
|
|
||||||
if (not purge.empty())
|
if (not purge.empty())
|
||||||
{
|
{
|
||||||
LogWarn("removing {} invalid RC from disk", purge.size());
|
log::warning(logcat, "removing {} invalid RCs from disk", purge.size());
|
||||||
|
|
||||||
for (const auto& fpath : purge)
|
for (const auto& fpath : purge)
|
||||||
fs::remove(fpath);
|
fs::remove(fpath);
|
||||||
|
|
Loading…
Reference in a new issue