prettify tor messages and use tor main

This commit is contained in:
sneurlax 2023-09-06 18:09:41 -05:00
parent f7ddaa1f73
commit d84f2d7b7a
3 changed files with 5 additions and 8 deletions

@ -1 +1 @@
Subproject commit 5c14a4397c6c1344d09bbe650f2c14a640c768d8
Subproject commit 22abf0036d8eda68efda5a31dc32c6f8932de4ec

View file

@ -105,8 +105,7 @@ class ElectrumX {
host: InternetAddress.loopbackIPv4.address,
port: TorService.sharedInstance.port
);
Logging.instance.log(
"ElectrumX.from(): no tor proxy info, read $proxyInfo",
Logging.instance.log("ElectrumX.from(): tor detected at $proxyInfo",
level: LogLevel.Warning);
}
return ElectrumX(
@ -156,8 +155,7 @@ class ElectrumX {
host: InternetAddress.loopbackIPv4.address,
port: TorService.sharedInstance.port
);
Logging.instance.log(
"ElectrumX.request(): no tor proxy info, read $proxyInfo",
Logging.instance.log("ElectrumX.request(): tor detected at $proxyInfo",
level: LogLevel.Warning);
}
if (currentFailoverIndex == -1) {
@ -290,7 +288,7 @@ class ElectrumX {
port: TorService.sharedInstance.port
);
Logging.instance.log(
"ElectrumX.batchRequest(): no tor proxy info, read $proxyInfo",
"ElectrumX.batchRequest(): tor detected at $proxyInfo",
level: LogLevel.Warning);
}

View file

@ -200,8 +200,7 @@ class JsonRPC {
host: InternetAddress.loopbackIPv4.address,
port: TorService.sharedInstance.port
);
Logging.instance.log(
"ElectrumX.connect(): no tor proxy info, read $proxyInfo",
Logging.instance.log("ElectrumX.connect(): tor detected at $proxyInfo",
level: LogLevel.Warning);
}