mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +01:00
Improve logging
This commit is contained in:
parent
0dadc05233
commit
4c3a721535
@ -21,6 +21,8 @@ import bisq.core.dao.node.BsqNode;
|
||||
import bisq.core.dao.node.explorer.ExportJsonFilesService;
|
||||
import bisq.core.dao.node.full.network.FullNodeNetworkService;
|
||||
import bisq.core.dao.node.parser.BlockParser;
|
||||
import bisq.core.dao.node.parser.exceptions.BlockHashNotConnectingException;
|
||||
import bisq.core.dao.node.parser.exceptions.BlockHeightNotConnectingException;
|
||||
import bisq.core.dao.node.parser.exceptions.RequiredReorgFromSnapshotException;
|
||||
import bisq.core.dao.state.DaoStateService;
|
||||
import bisq.core.dao.state.DaoStateSnapshotService;
|
||||
@ -239,6 +241,9 @@ public class FullNode extends BsqNode {
|
||||
}
|
||||
|
||||
private void handleError(Throwable throwable) {
|
||||
if (throwable instanceof BlockHashNotConnectingException || throwable instanceof BlockHeightNotConnectingException) {
|
||||
log.warn(throwable.toString());
|
||||
} else {
|
||||
String errorMessage = "An error occurred: Error=" + throwable.toString();
|
||||
log.error(errorMessage);
|
||||
throwable.printStackTrace();
|
||||
@ -267,4 +272,5 @@ public class FullNode extends BsqNode {
|
||||
if (errorMessageHandler != null)
|
||||
errorMessageHandler.accept(errorMessage);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user