Significantly decrease decomm warning frequency

30s is insanely fast for a error level log statement and spams logs
incessantly; reduce it to repeating once every 5 minutes.
This commit is contained in:
Jason Rhinelander 2022-09-27 10:36:38 -03:00
parent d944b6542c
commit ebdb37ac77
No known key found for this signature in database
GPG Key ID: C4992CE7A88D4262
1 changed files with 1 additions and 1 deletions

View File

@ -1041,7 +1041,7 @@ namespace llarp
if (auto dereg = LooksDeregistered(); (dereg or decom) and now >= m_NextDecommissionWarn)
{
// complain about being deregistered
constexpr auto DecommissionWarnInterval = 30s;
constexpr auto DecommissionWarnInterval = 5min;
LogError(
"We are running as a service node but we seem to be ",
dereg ? "deregistered" : "decommissioned");