Skip to content

Commit d4add8b

Browse files
committed
Use BindException and info logging
1 parent 42be325 commit d4add8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/repository-s3/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,8 @@ if (useFixture && minioDistribution) {
196196
javax.net.ServerSocketFactory.getDefault().createServerSocket(port, 1, InetAddress.getByName(minioAddress)).close()
197197
minioPort = port
198198
break
199-
} catch (Exception e) {
200-
logger.error("Failed to determine free port " + port + " for Minio process", e)
199+
} catch (BindException e) {
200+
logger.info("Port " + port + " for Minio process is already taken", e)
201201
}
202202
}
203203
if (minioPort == 0) {

0 commit comments

Comments
 (0)