From 04f83e779e3377626011524578e12b46c27d7a89 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Fri, 15 Mar 2002 19:11:14 +0000 Subject: [PATCH] Report the host and port to which we're connecting. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1124 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/java/com/threerings/presents/client/Communicator.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/java/com/threerings/presents/client/Communicator.java b/src/java/com/threerings/presents/client/Communicator.java index 676ec0d4b..c5433548d 100644 --- a/src/java/com/threerings/presents/client/Communicator.java +++ b/src/java/com/threerings/presents/client/Communicator.java @@ -1,5 +1,5 @@ // -// $Id: Communicator.java,v 1.16 2001/10/11 04:07:52 mdb Exp $ +// $Id: Communicator.java,v 1.17 2002/03/15 19:11:14 mdb Exp $ package com.threerings.presents.client; @@ -290,7 +290,6 @@ public class Communicator } catch (Exception e) { Log.info("Logon failed: " + e); - Log.logStackTrace(e); // let the observers know that we've failed _client.notifyObservers(Client.CLIENT_FAILED_TO_LOGON, e); // and terminate our communicator thread @@ -308,9 +307,12 @@ public class Communicator // look up the address of the target server InetAddress host = InetAddress.getByName(_client.getHostname()); + int port = _client.getPort(); // establish a socket connection to said server - _socket = new Socket(host, _client.getPort()); + Log.info("Connecting to server [host=" + host + + ", port=" + port + "]."); + _socket = new Socket(host, port); // get a handle on our input and output streams _in = _socket.getInputStream();