mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
clean up some no longer needed logs
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
parent
b6aa898d6d
commit
72efae79a4
@ -201,7 +201,7 @@ QByteArray ComputeChecksum::checksumType() const
|
||||
|
||||
void ComputeChecksum::start(const QString &filePath)
|
||||
{
|
||||
qCInfo(lcChecksums) << "Computing" << checksumType() << "checksum of" << filePath << "in a thread";
|
||||
qCDebug(lcChecksums) << "Computing" << checksumType() << "checksum of" << filePath << "in a thread";
|
||||
startImpl(filePath);
|
||||
}
|
||||
|
||||
|
||||
@ -1711,13 +1711,11 @@ static void toDownloadInfo(SqlQuery &query, SyncJournalDb::DownloadInfo *res)
|
||||
res->_valid = ok;
|
||||
}
|
||||
|
||||
static bool deleteBatch(SqlQuery &query, const QStringList &entries, const QString &name)
|
||||
static bool deleteBatch(SqlQuery &query, const QStringList &entries)
|
||||
{
|
||||
if (entries.isEmpty())
|
||||
return true;
|
||||
|
||||
qCDebug(lcDb) << "Removing stale" << name << "entries:" << entries.join(QStringLiteral(", "));
|
||||
// FIXME: Was ported from execBatch, check if correct!
|
||||
for (const auto &entry : entries) {
|
||||
query.reset_and_clear_bindings();
|
||||
query.bindValue(1, entry);
|
||||
@ -1831,7 +1829,7 @@ QVector<SyncJournalDb::DownloadInfo> SyncJournalDb::getAndDeleteStaleDownloadInf
|
||||
qCDebug(lcDb) << "database error:" << query->error();
|
||||
return empty_result;
|
||||
}
|
||||
if (!deleteBatch(*query, superfluousPaths, QStringLiteral("downloadinfo"))) {
|
||||
if (!deleteBatch(*query, superfluousPaths)) {
|
||||
return empty_result;
|
||||
}
|
||||
}
|
||||
@ -1965,7 +1963,7 @@ QVector<uint> SyncJournalDb::deleteStaleUploadInfos(const QSet<QString> &keep)
|
||||
}
|
||||
|
||||
const auto deleteUploadInfoQuery = _queryManager.get(PreparedSqlQueryManager::DeleteUploadInfoQuery);
|
||||
deleteBatch(*deleteUploadInfoQuery, superfluousPaths, QStringLiteral("uploadinfo"));
|
||||
deleteBatch(*deleteUploadInfoQuery, superfluousPaths);
|
||||
return ids;
|
||||
}
|
||||
|
||||
@ -2033,7 +2031,7 @@ bool SyncJournalDb::deleteStaleErrorBlacklistEntries(const QSet<QString> &keep)
|
||||
|
||||
SqlQuery delQuery(_db);
|
||||
delQuery.prepare("DELETE FROM blacklist WHERE path = ?");
|
||||
return deleteBatch(delQuery, superfluousPaths, QStringLiteral("blacklist"));
|
||||
return deleteBatch(delQuery, superfluousPaths);
|
||||
}
|
||||
|
||||
void SyncJournalDb::deleteStaleFlagsEntries()
|
||||
|
||||
@ -223,8 +223,6 @@ void FolderWatcher::changeDetected(const QStringList &paths)
|
||||
_lockedFiles.insert(checkResult.path);
|
||||
}
|
||||
|
||||
qCDebug(lcFolderWatcher) << "Locked files:" << _lockedFiles.values();
|
||||
|
||||
// ------- handle ignores:
|
||||
if (pathIsIgnored(path)) {
|
||||
continue;
|
||||
@ -233,9 +231,6 @@ void FolderWatcher::changeDetected(const QStringList &paths)
|
||||
changedPaths.insert(path);
|
||||
}
|
||||
|
||||
qCDebug(lcFolderWatcher) << "Unlocked files:" << _unlockedFiles.values();
|
||||
qCDebug(lcFolderWatcher) << "Locked files:" << _lockedFiles;
|
||||
|
||||
if (!_lockedFiles.isEmpty() || !_unlockedFiles.isEmpty()) {
|
||||
if (_lockChangeDebouncingTimer.isActive()) {
|
||||
_lockChangeDebouncingTimer.stop();
|
||||
|
||||
@ -228,7 +228,6 @@ void SyncEngine::deleteStaleDownloadInfos(const SyncFileItemVector &syncItems)
|
||||
_journal->getAndDeleteStaleDownloadInfos(download_file_paths);
|
||||
for (const SyncJournalDb::DownloadInfo &deleted_info : deleted_infos) {
|
||||
const QString tmppath = _propagator->fullLocalPath(deleted_info._tmpfile);
|
||||
qCInfo(lcEngine) << "Deleting stale temporary file: " << tmppath;
|
||||
FileSystem::remove(tmppath);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user