mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 10:55:46 -05:00
Fix crash when logging at exit time
This commit is contained in:
parent
5126458040
commit
1b695b7355
1 changed files with 4 additions and 1 deletions
|
@ -65,7 +65,10 @@ log( const char *msg, unsigned int debugLevel, bool toDisk = true )
|
|||
{
|
||||
QMutexLocker lock( &s_mutex );
|
||||
|
||||
logfile << QDate::currentDate().toString().toUtf8().data()
|
||||
// If we don't format the date as a Qt::ISODate then we get a crash when
|
||||
// logging at exit as Qt tries to use QLocale to format, but QLocale is
|
||||
// on its way out.
|
||||
logfile << QDate::currentDate().toString( Qt::ISODate ).toUtf8().data()
|
||||
<< " - "
|
||||
<< QTime::currentTime().toString().toUtf8().data()
|
||||
<< " [" << QString::number( debugLevel ).toUtf8().data() << "]: "
|
||||
|
|
Loading…
Add table
Reference in a new issue