mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 00:14:06 +00:00
fix: remove the context line parameter
in release mode, this parameters are empty
This commit is contained in:
parent
f58eb43bd2
commit
47cc3ced1f
|
@ -54,11 +54,8 @@ QMutex logMutex;
|
|||
void gdMessageHandler( QtMsgType type, const QMessageLogContext &context, const QString &mess )
|
||||
{
|
||||
QString strTime = QDateTime::currentDateTime().toString( "MM-dd hh:mm:ss" );
|
||||
QString message = QString( "%1 file:%2,line:%3,function:%4 %5\r\n" )
|
||||
QString message = QString( "%1 %2\r\n" )
|
||||
.arg( strTime )
|
||||
.arg( context.file )
|
||||
.arg( context.line )
|
||||
.arg( context.function )
|
||||
.arg( mess );
|
||||
|
||||
if ( ( logFilePtr != nullptr ) && logFilePtr->isOpen() ) {
|
||||
|
|
Loading…
Reference in a new issue