@@ -84,7 +84,9 @@ function FarmerInterface(options) {
84
84
85
85
this . spaceAvailable = true ;
86
86
87
- // Connecting the dots (we need to reorganize this better)
87
+ // Connecting the dots. Note: We should organize this better
88
+ // so that it's not necesarry to set these after they
89
+ // have been constructed.
88
90
this . _protocol . handleAlloc = this . handleAlloc . bind ( this ) ;
89
91
this . transport . shardServer . farmerInterface = this ;
90
92
@@ -118,7 +120,7 @@ FarmerInterface.prototype._deprecatedConfigV1 = function(options) {
118
120
119
121
FarmerInterface . prototype . isBridgeConnected = function ( contract ) {
120
122
if ( ! this . bridges ) {
121
- this . _logger . debug ( 'no bridge are connected' ) ;
123
+ this . _logger . debug ( 'no bridges are connected' ) ;
122
124
return false ;
123
125
}
124
126
var isConnected = this . bridges . has ( contract . get ( 'renter_hd_key' ) ) ;
@@ -266,6 +268,7 @@ FarmerInterface.prototype._connectBridges = function() {
266
268
}
267
269
this . bridges . get ( bridge . extendedKey ) . connected = true ;
268
270
this . emit ( 'bridgeConnected' , bridge ) ;
271
+ this . _logger . info ( 'Connected to bridge: %s' , bridge . url ) ;
269
272
next ( ) ;
270
273
} ) ;
271
274
} , ( err ) => {
@@ -274,7 +277,6 @@ FarmerInterface.prototype._connectBridges = function() {
274
277
return this . _logger . error ( 'Unable to connect to bridges' ) ;
275
278
}
276
279
this . emit ( 'bridgesConnected' ) ;
277
- this . _logger . info ( 'Finished connecting to bridges' ) ;
278
280
} ) ;
279
281
}
280
282
0 commit comments