in src/main/scala/com/twitter/iago/server/ThriftServer.scala [40:53]
def start(parrotServer: ParrotServer, address: InetSocketAddress) {
try {
server = ThriftMux.server
.configured(Tracer(DefaultTracer))
.withProtocolFactory(new TBinaryProtocol.Factory())
.serveIface(address, parrotServer)
log.trace("created an iago server on port %d", address.getPort)
log.trace("bound address is %s", server.boundAddress.toString)
} catch {
case e: Exception =>
e.printStackTrace()
log.error(e, "Unexpected exception: %s", e.getMessage)
}
}