Browse Source

Added useful messages.

Mihawk 12 years ago
parent
commit
4948d0e96b
3 changed files with 8 additions and 5 deletions
  1. 5 2
      App.cpp
  2. 2 2
      App.h
  3. 1 1
      SshClient.cpp

+ 5 - 2
App.cpp

@@ -640,11 +640,14 @@ void App::incrementReplyCounters(const QString &hash, int userCount, int channel
 }
 
 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-void App::requestCachedHostNames() const
+void App::requestCachedHostNames()
 {
   ActiveClient* ac;
   foreach(ac, myClients)
+  {
+    print("Requested HostName for server " + ac->serverAddressString() + "\n");
     mySshClient->write("REQ_DNS " + ac->serverAddressString() + "\n");
+  }
 }
 
 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@@ -655,7 +658,7 @@ void App::setServerHostName(const QString &serverAddress, const QString &hostNam
   {
     if(ac->serverAddressString() == serverAddress)
     {
-      qDebug() << serverAddress << hostName;
+      print("HostName for " + serverAddress + " set to " + hostName + "\n");
       ac->setHostName(hostName);
       return;
     }

+ 2 - 2
App.h

@@ -136,7 +136,7 @@ public:
     @param serverAddress The server address full string ip:port
     @return hostName     The server hostname
   */
-  QString serverHostName(const QString& serverAddress) const;
+  QString               serverHostName(const QString& serverAddress) const;
 
 protected:
   /**
@@ -216,7 +216,7 @@ private:
     Those hostnames are obtained from central, that has a smart
     hostname lookup system.
   */
-  void                  requestCachedHostNames() const;
+  void                  requestCachedHostNames();
 
   /**
     The following functions sets the Team, Color, Nick and Ping

+ 1 - 1
SshClient.cpp

@@ -274,7 +274,7 @@ bool SshClient::connectToHost(const QString &user, const QString &host)
     return false;
   else
   {
-    myConnectionTimerID = startTimer(30000);
+    myConnectionTimerID = startTimer(60000); // up to 1 minute of waiting
     return true;
   }
 }