Commit 21e467db authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

VlmcDebug: Don't bother changing the logfile at runtime

parent 00b286e0
...@@ -87,26 +87,6 @@ VlmcDebug::setup() ...@@ -87,26 +87,6 @@ VlmcDebug::setup()
qInstallMsgHandler( VlmcDebug::vlmcMessageHandler ); qInstallMsgHandler( VlmcDebug::vlmcMessageHandler );
} }
void
VlmcDebug::logFileChanged( const QVariant& logFileV )
{
QString logFile = logFileV.toString();
if ( logFile.isEmpty() == true )
{
m_logFile->close();
return ;
}
if ( logFile == m_logFile->fileName() )
{
fprintf( stderr, "Trying to use the same log file. Nothing will be done" );
return ;
}
m_logFile->close();
m_logFile->setFileName( logFile );
m_logFile->open( QFile::Append | QFile::Truncate );
}
void void
VlmcDebug::logLevelChanged( const QVariant &logLevel ) VlmcDebug::logLevelChanged( const QVariant &logLevel )
{ {
......
...@@ -58,7 +58,6 @@ class VlmcDebug : public QObject, public Singleton<VlmcDebug> ...@@ -58,7 +58,6 @@ class VlmcDebug : public QObject, public Singleton<VlmcDebug>
LogLevel m_currentLogLevel; LogLevel m_currentLogLevel;
private slots: private slots:
void logFileChanged( const QVariant& logFile );
void logLevelChanged( const QVariant& logLevel ); void logLevelChanged( const QVariant& logLevel );
friend class Singleton<VlmcDebug>; friend class Singleton<VlmcDebug>;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment