feat: Add public key to log messages (#5678)

To protect the identity of UNL validators, the IP addresses are redacted from the log messages sent to the common Grafana instance. However, without such identifying information it is challenging to debug issues. This change adds a node's public key to logs to improve our ability to debug issues.

Co-authored-by: Bart Thomee <11445373+bthomee@users.noreply.github.com>
This commit is contained in:
Jingchen
2025-10-29 14:16:37 +00:00
committed by GitHub
parent a8e4da0b11
commit ed5d6f3e22
14 changed files with 162 additions and 103 deletions

View File

@@ -325,6 +325,13 @@ public:
return false;
}
std::string const&
fingerprint() const override
{
return fingerprint_;
}
std::string fingerprint_;
bool ledgerReplayEnabled_;
PublicKey nodePublicKey_;
};

View File

@@ -475,6 +475,12 @@ public:
return id_;
}
std::string const&
fingerprint() const override
{
return fingerprint_;
}
static void
resetId()
{
@@ -508,6 +514,7 @@ public:
private:
inline static id_t sid_ = 0;
std::string fingerprint_;
id_t id_;
Overlay& overlay_;
reduce_relay::Squelch<ManualClock> squelch_;