Skip to content

Commit e32ca1c

Browse files
committed
improve socket binding logging
1 parent 61fca89 commit e32ca1c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ci/LDKSwift/Tests/LDKSwiftTests/HumanObjectPeerTestInstance.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,14 +343,17 @@ public class HumanObjectPeerTestInstance {
343343
return
344344
}
345345
self.tcpSocketHandler = self.constructor!.getTCPPeerHandler()
346+
print("Attempting to bind socket…")
346347
for i in 10000...65535 {
347348
let port = UInt16(i)
348349
let bound = self.tcpSocketHandler!.bind(address: "127.0.0.1", port: port)
349350
if bound {
351+
print("Bound socket to port \(port) on attempt \(i)")
350352
self.tcpPort = port
351353
return
352354
}
353355
}
356+
print("Failed to bind on any port")
354357
throw SocketBindError.failedToBindSocket
355358
}
356359

0 commit comments

Comments
 (0)