Skip to content

Commit

Permalink
Use BindException and info logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ywelsch committed Aug 14, 2018
1 parent 42be325 commit d4add8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/repository-s3/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ if (useFixture && minioDistribution) {
javax.net.ServerSocketFactory.getDefault().createServerSocket(port, 1, InetAddress.getByName(minioAddress)).close()
minioPort = port
break
} catch (Exception e) {
logger.error("Failed to determine free port " + port + " for Minio process", e)
} catch (BindException e) {
logger.info("Port " + port + " for Minio process is already taken", e)
}
}
if (minioPort == 0) {
Expand Down

0 comments on commit d4add8b

Please sign in to comment.