I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 4fe24790 authored by zzz's avatar zzz
Browse files

RouterInfo: Log the full RI, not the hash of the data

(which is useless) on signature verification fail,
in an attempt to find the culprit
parent 68ecd827
No related branches found
No related tags found
No related merge requests found
......@@ -487,16 +487,10 @@ public class RouterInfo extends DatabaseEntry {
if (!_isValid) {
Log log = I2PAppContext.getGlobalContext().logManager().getLog(RouterInfo.class);
byte data[] = null;
try {
data = getBytes();
} catch (DataFormatException dfe) {
log.error("Error validating", dfe);
return;
}
log.error("Invalid [" + SHA256Generator.getInstance().calculateHash(data).toBase64()
+ (log.shouldLog(Log.WARN) ? ("]\n" + toString()) : ""),
new Exception("Signature failed"));
// TODO change to warn
//if (log.shouldWarn()) {
log.error("Sig verify fail: " + toString(), new Exception("from"));
//}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment