I fear a memory leak -> better solution required...
This commit is contained in:
parent
53fb06b137
commit
4a86ccda4f
1 changed files with 0 additions and 8 deletions
|
@ -342,10 +342,6 @@ void CServerLogging::AddNewConnection ( const QHostAddress& ClientInetAddr )
|
||||||
const QString strLogStr = CurTimeDatetoLogString() + ", " +
|
const QString strLogStr = CurTimeDatetoLogString() + ", " +
|
||||||
ClientInetAddr.toString() + ", connected";
|
ClientInetAddr.toString() + ", connected";
|
||||||
|
|
||||||
|
|
||||||
QTextStream* tsConsoleStream = (new ConsoleWriterFactory())->get();
|
|
||||||
(*tsConsoleStream) << strLogStr << endl; // on console
|
|
||||||
|
|
||||||
*this << strLogStr; // in log file
|
*this << strLogStr; // in log file
|
||||||
|
|
||||||
// add element to history
|
// add element to history
|
||||||
|
@ -357,10 +353,6 @@ void CServerLogging::AddServerStopped()
|
||||||
const QString strLogStr = CurTimeDatetoLogString() + ",, server stopped "
|
const QString strLogStr = CurTimeDatetoLogString() + ",, server stopped "
|
||||||
"-------------------------------------";
|
"-------------------------------------";
|
||||||
|
|
||||||
|
|
||||||
QTextStream* tsConsoleStream = (new ConsoleWriterFactory())->get();
|
|
||||||
(*tsConsoleStream) << strLogStr << endl; // on console
|
|
||||||
|
|
||||||
*this << strLogStr; // in log file
|
*this << strLogStr; // in log file
|
||||||
|
|
||||||
// add element to history and update on server stop
|
// add element to history and update on server stop
|
||||||
|
|
Loading…
Add table
Reference in a new issue