mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-02-24 06:57:51 +01:00
Add log for tor being provided (#4329)
* Add log for tor being provided * Remove duplicate log
This commit is contained in:
parent
18c5ded5d3
commit
6356a50a89
2 changed files with 1 additions and 3 deletions
|
@ -104,9 +104,6 @@ object TorClient extends Logging {
|
||||||
|
|
||||||
val executableFileName = datadir.resolve(torBundle.primaryExecutable).toFile
|
val executableFileName = datadir.resolve(torBundle.primaryExecutable).toFile
|
||||||
|
|
||||||
logger.info(
|
|
||||||
s"Using prepackaged Tor from bitcoin-s resources, $executableFileName")
|
|
||||||
|
|
||||||
if (existsAndIsExecutable(datadir, torBundle)) {
|
if (existsAndIsExecutable(datadir, torBundle)) {
|
||||||
logger.info(
|
logger.info(
|
||||||
s"Using tor daemon already written to datadir=${datadir.toAbsolutePath}")
|
s"Using tor daemon already written to datadir=${datadir.toAbsolutePath}")
|
||||||
|
|
|
@ -106,6 +106,7 @@ case class TorAppConfig(
|
||||||
*/
|
*/
|
||||||
override def start(): Future[Unit] = {
|
override def start(): Future[Unit] = {
|
||||||
if (torProvided) {
|
if (torProvided) {
|
||||||
|
logger.info(s"Tor provided to us, skipping start")
|
||||||
Future.unit
|
Future.unit
|
||||||
} else {
|
} else {
|
||||||
lazy val torRunning = checkIfTorAlreadyRunning
|
lazy val torRunning = checkIfTorAlreadyRunning
|
||||||
|
|
Loading…
Add table
Reference in a new issue