Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

Commit

Permalink
Remove the reverse lookup in the log message
Browse files Browse the repository at this point in the history
Use getHostString instead of getHostName

RB_ID=130001
  • Loading branch information
dhamanka committed Mar 8, 2013
1 parent 606786f commit 3262960
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/net/lag/kestrel/ThriftHandler.scala
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ class ThriftHandler (

protected def clientDescription: String = {
val address = connection.remoteAddress.asInstanceOf[InetSocketAddress]
"%s:%d".format(address.getHostName, address.getPort)
"%s:%d".format(address.getHostString, address.getPort)
}

def put(queueName: String, items: Seq[ByteBuffer], expirationMsec: Int): Future[Int] = {
Expand Down

0 comments on commit 3262960

Please sign in to comment.