Skip to content

Commit

Permalink
remove prints.
Browse files Browse the repository at this point in the history
remove prints.
  • Loading branch information
diegopacheco committed May 12, 2016
1 parent 6d62ba7 commit 41a8c4b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/main/scala/io/gatling/eureka/EurekaProtocol.scala
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,12 @@ class EurekaProtocolBuilder(url: String, appName: String) {

def ip(): String = {
val eurekaRequestURL: String = url + "/v2/apps/" + appName
println("This code runs: " + eurekaRequestURL)

val u = new URL(eurekaRequestURL);
val uc = u.openConnection();
val gzInputStream = new GZIPInputStream(new BufferedInputStream(uc.getInputStream))
val eurekaXMLResponse = Source.fromInputStream(gzInputStream).closeAfterGetLines().mkString
val eurekaXML = scala.xml.XML.loadString(eurekaXMLResponse)
println("Response xml: " + eurekaXML)

val ip: String = (eurekaXML \ "instance" \ "ipAddr").text
return ip
Expand Down

0 comments on commit 41a8c4b

Please sign in to comment.