fix for server issue under Windows

This commit is contained in:
Volker Fischer 2009-03-28 09:52:36 +00:00
parent 18dbb7e1fd
commit 25a34ae8c0

View file

@ -120,8 +120,10 @@ void CServer::Stop()
const QString strLogStr = CLogTimeDate::toString() + ",, server stopped "
"-------------------------------------";
#ifndef _WIN32
QTextStream tsConsoloeStream ( stdout );
tsConsoloeStream << strLogStr << endl; // on console
#endif
Logging << strLogStr; // in log file
}
@ -131,8 +133,10 @@ void CServer::OnNewChannel ( CHostAddress ChanAddr )
const QString strLogStr = CLogTimeDate::toString() + ", " +
ChanAddr.InetAddr.toString() + ", connected";
#ifndef _WIN32
QTextStream tsConsoloeStream ( stdout );
tsConsoloeStream << strLogStr << endl; // on console
#endif
Logging << strLogStr; // in log file
}