mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
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:
@@ -325,6 +325,13 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
std::string const&
|
||||
fingerprint() const override
|
||||
{
|
||||
return fingerprint_;
|
||||
}
|
||||
|
||||
std::string fingerprint_;
|
||||
bool ledgerReplayEnabled_;
|
||||
PublicKey nodePublicKey_;
|
||||
};
|
||||
|
||||
@@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user