Fix log warning

This commit is contained in:
Jason Rhinelander 2022-09-22 13:22:43 -03:00
parent ab11a8128d
commit 66c79b232a
No known key found for this signature in database
GPG Key ID: C4992CE7A88D4262
1 changed files with 3 additions and 1 deletions

View File

@ -21,6 +21,8 @@ static const std::string RC_FILE_EXT = ".signed";
namespace llarp
{
static auto logcat = log::Cat("nodedb");
NodeDB::Entry::Entry(RouterContact value) : rc(std::move(value)), insertedAt(llarp::time_now_ms())
{}
@ -160,7 +162,7 @@ namespace llarp
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)
fs::remove(fpath);