mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-26 11:16:20 +03:00
Rename variable
This commit is contained in:
parent
5049b76b40
commit
d179c6d5a1
1 changed files with 6 additions and 6 deletions
|
@ -114,23 +114,23 @@ void FileLogger::addLogMessage(const Log::Msg &msg)
|
|||
{
|
||||
if (!m_logFile.isOpen()) return;
|
||||
|
||||
QTextStream str(&m_logFile);
|
||||
QTextStream stream(&m_logFile);
|
||||
|
||||
switch (msg.type) {
|
||||
case Log::INFO:
|
||||
str << "(I) ";
|
||||
stream << "(I) ";
|
||||
break;
|
||||
case Log::WARNING:
|
||||
str << "(W) ";
|
||||
stream << "(W) ";
|
||||
break;
|
||||
case Log::CRITICAL:
|
||||
str << "(C) ";
|
||||
stream << "(C) ";
|
||||
break;
|
||||
default:
|
||||
str << "(N) ";
|
||||
stream << "(N) ";
|
||||
}
|
||||
|
||||
str << QDateTime::fromMSecsSinceEpoch(msg.timestamp).toString(Qt::ISODate) << " - " << msg.message << endl;
|
||||
stream << QDateTime::fromMSecsSinceEpoch(msg.timestamp).toString(Qt::ISODate) << " - " << msg.message << endl;
|
||||
|
||||
if (m_backup && (m_logFile.size() >= m_maxSize)) {
|
||||
closeLogFile();
|
||||
|
|
Loading…
Reference in a new issue