Revert "get rid of some debug printfs"

This reverts commit 09b60f93aeabe5e0ea5ec26bdf3a255c7e9fcf64.
This commit is contained in:
darkrose 2014-07-12 21:21:58 +10:00
parent 4565caabea
commit c2900aa9fc
2 changed files with 9 additions and 1 deletions

View File

@ -543,6 +543,7 @@ Connection::~Connection()
void * Connection::Thread() void * Connection::Thread()
{ {
printf("Connection::Thread()\n");
log_register_thread("Connection"); log_register_thread("Connection");
dout_con<<"Connection thread started"<<std::endl; dout_con<<"Connection thread started"<<std::endl;
@ -565,6 +566,7 @@ void * Connection::Thread()
runTimeouts(dtime); runTimeouts(dtime);
while(m_command_queue.size() != 0){ while(m_command_queue.size() != 0){
printf("m_command_queue.size() = %u\n",m_command_queue.size());
ConnectionCommand c = m_command_queue.pop_front(); ConnectionCommand c = m_command_queue.pop_front();
processCommand(c); processCommand(c);
} }
@ -575,6 +577,7 @@ void * Connection::Thread()
END_DEBUG_EXCEPTION_HANDLER(derr_con); END_DEBUG_EXCEPTION_HANDLER(derr_con);
} }
printf("Connection::Thread() exit\n");
return NULL; return NULL;
} }

View File

@ -73,6 +73,7 @@ private:
void * ServerThread::Thread() void * ServerThread::Thread()
{ {
printf("ServerThread::Thread()\n");
log_register_thread("ServerThread"); log_register_thread("ServerThread");
DSTACK(__FUNCTION_NAME); DSTACK(__FUNCTION_NAME);
@ -103,6 +104,8 @@ void * ServerThread::Thread()
END_DEBUG_EXCEPTION_HANDLER(errorstream) END_DEBUG_EXCEPTION_HANDLER(errorstream)
printf("ServerThread::Thread() exit\n");
return NULL; return NULL;
} }
@ -1074,8 +1077,10 @@ void Server::start(unsigned short port)
// Initialize connection // Initialize connection
m_con.SetTimeoutMs(30); m_con.SetTimeoutMs(30);
m_con.Serve(port); m_con.Serve(port);
if (!m_con.getRun()) if (!m_con.getRun()) {
printf("no con run\n");
return; return;
}
// Start thread // Start thread
m_thread.start(); m_thread.start();