Skip to content

Commit

Permalink
Add longer timeout and some more logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
melowe committed Apr 23, 2019
1 parent 797ee0c commit e969c03
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public Process doStart() throws Exception {

Future<Boolean> future = executorService.submit(serverStatusCheckExecutor);

Boolean result = future.get(2, TimeUnit.MINUTES);
Boolean result = future.get(3, TimeUnit.MINUTES);

if (!result) {
throw new IllegalStateException("Enclave server not started");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public boolean checkStatus() {

return true;
} catch (IOException ex) {
LOGGER.warn(ex.getMessage());
LOGGER.debug(null, ex);
return false;
} finally {
if (httpsConnection != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public ServerStatusCheckExecutor(ServerStatusCheck serverStatusCheck) {

@Override
public Boolean call() throws Exception {
LOGGER.info("Connecting {}",serverStatusCheck);
do {
LOGGER.debug("Unable to connect try again in 1 sec. {}",serverStatusCheck);
TimeUnit.SECONDS.sleep(1);
Expand Down

0 comments on commit e969c03

Please sign in to comment.