Skip to content

Commit

Permalink
Remove old docker library
Browse files Browse the repository at this point in the history
Fix integration specs
Deprecate OpenApiSpec
  • Loading branch information
ccellado committed Mar 18, 2024
1 parent 98c0966 commit f0fc48d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/it/scala/org/ergoplatform/it/api/NodeApi.scala
Original file line number Diff line number Diff line change
Expand Up @@ -130,17 +130,13 @@ trait NodeApi {
interval: FiniteDuration = 1.second,
statusCode: Int = HttpConstants.ResponseStatusCodes.OK_200): Future[Response] = {
def executeRequest: Future[Response] = {
// log.info(s"Executing request '$request'")
log.trace(s"Executing request '$request'")
client.executeRequest(request, new AsyncCompletionHandler[Response] {
override def onCompleted(response: Response): Response = {
if (response.getStatusCode == statusCode) {
// log.info(s"Request: ${request.getUrl} \n Response: ${response.getResponseBody}")
log.debug(s"Request: ${request.getUrl} \n Response: ${response.getResponseBody}")
response
} else {
// log.info(s"Request: ${request.getUrl} \n Unexpected status code(${response.getStatusCode}): " +
// s"${response.getResponseBody}")
log.debug(s"Request: ${request.getUrl} \n Unexpected status code(${response.getStatusCode}): " +
s"${response.getResponseBody}")
throw UnexpectedStatusCodeException(request, response)
Expand All @@ -149,7 +145,6 @@ trait NodeApi {
}).toCompletableFuture.toScala
.recoverWith {
case e@(_: IOException | _: TimeoutException) =>
// log.info(s"Failed to execute request '$request' with error: ${e.getMessage}")
log.debug(s"Failed to execute request '$request' with error: ${e.getMessage}")
timer.schedule(executeRequest, interval)
}
Expand Down

0 comments on commit f0fc48d

Please sign in to comment.