fix for server issue under Windows
This commit is contained in:
parent
18dbb7e1fd
commit
25a34ae8c0
1 changed files with 6 additions and 2 deletions
|
@ -120,8 +120,10 @@ void CServer::Stop()
|
||||||
const QString strLogStr = CLogTimeDate::toString() + ",, server stopped "
|
const QString strLogStr = CLogTimeDate::toString() + ",, server stopped "
|
||||||
"-------------------------------------";
|
"-------------------------------------";
|
||||||
|
|
||||||
|
#ifndef _WIN32
|
||||||
QTextStream tsConsoloeStream ( stdout );
|
QTextStream tsConsoloeStream ( stdout );
|
||||||
tsConsoloeStream << strLogStr << endl; // on console
|
tsConsoloeStream << strLogStr << endl; // on console
|
||||||
|
#endif
|
||||||
Logging << strLogStr; // in log file
|
Logging << strLogStr; // in log file
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -131,8 +133,10 @@ void CServer::OnNewChannel ( CHostAddress ChanAddr )
|
||||||
const QString strLogStr = CLogTimeDate::toString() + ", " +
|
const QString strLogStr = CLogTimeDate::toString() + ", " +
|
||||||
ChanAddr.InetAddr.toString() + ", connected";
|
ChanAddr.InetAddr.toString() + ", connected";
|
||||||
|
|
||||||
|
#ifndef _WIN32
|
||||||
QTextStream tsConsoloeStream ( stdout );
|
QTextStream tsConsoloeStream ( stdout );
|
||||||
tsConsoloeStream << strLogStr << endl; // on console
|
tsConsoloeStream << strLogStr << endl; // on console
|
||||||
|
#endif
|
||||||
Logging << strLogStr; // in log file
|
Logging << strLogStr; // in log file
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue