mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-20 02:12:00 +01:00
Do not log full tiler object in case of an invalid Filter
Instead log signerPubKeyAsHex and creation date. We have currently the old filter still around (intended) so we get that log called and it would confuse ppl reading the log without knowing more about the context.
This commit is contained in:
parent
723a1f5cf9
commit
076af0a3e1
@ -56,6 +56,7 @@ import java.math.BigInteger;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.Date;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
@ -586,7 +587,11 @@ public class FilterManager {
|
||||
private boolean isFilterPublicKeyInList(Filter filter) {
|
||||
String signerPubKeyAsHex = filter.getSignerPubKeyAsHex();
|
||||
if (!isPublicKeyInList(signerPubKeyAsHex)) {
|
||||
log.warn("signerPubKeyAsHex from filter is not part of our pub key list. filter={}, publicKeys={}", filter, publicKeys);
|
||||
log.warn("Invalid filter (expected case for pre v1.3.9 filter as we still keep that in the network " +
|
||||
"but the new version does not recognize it as valid filter): " +
|
||||
"signerPubKeyAsHex from filter is not part of our pub key list. " +
|
||||
"signerPubKeyAsHex={}, publicKeys={}, filterCreationDate={}",
|
||||
signerPubKeyAsHex, publicKeys, new Date(filter.getCreationDate()));
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user