mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-13 00:33:09 -07:00
Set default file log size to 65 KiB and delete backup logs older than 1 month.
This commit is contained in:
parent
d6cea2f76d
commit
024df8c53f
5 changed files with 20 additions and 23 deletions
|
@ -135,7 +135,7 @@ void FileLogger::addLogMessage(const Log::Msg &msg)
|
|||
|
||||
str << QDateTime::fromMSecsSinceEpoch(msg.timestamp).toString(Qt::ISODate) << " - " << msg.message << endl;
|
||||
|
||||
if (m_backup && (m_logFile->size() >= (m_maxSize * 1024 * 1024))) {
|
||||
if (m_backup && (m_logFile->size() >= m_maxSize)) {
|
||||
closeLogFile();
|
||||
int counter = 0;
|
||||
QString backupLogFilename = m_path + ".bak";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue