Skip to content

Commit d91636a

Browse files
mgallienbackportbot[bot]
authored andcommitted
chore: lower log level for legacy config imports
very early in teh start of teh client, we try to import legacy configuration file from a legacy configuration folder use debug level to keep them quiet Close #9779 Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
1 parent 2b20840 commit d91636a

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

src/gui/application.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -270,18 +270,18 @@ Application::Application(int &argc, char **argv)
270270
confDir.chop(1);
271271
}
272272

273-
qCInfo(lcApplication) << "Migrating old config from" << legacyDir << "to" << confDir;
273+
qCDebug(lcApplication) << "Migrating old config from" << legacyDir << "to" << confDir;
274274

275275
if (!QFile::rename(legacyDir, confDir)) {
276-
qCWarning(lcApplication) << "Failed to move the old config directory to its new location (" << legacyDir << "to" << confDir << ")";
276+
qCDebug(lcApplication) << "Failed to move the old config directory to its new location (" << legacyDir << "to" << confDir << ")";
277277

278278
// Try to move the files one by one
279279
if (QFileInfo(confDir).isDir() || QDir().mkdir(confDir)) {
280280
const QStringList filesList = QDir(legacyDir).entryList(QDir::Files);
281-
qCInfo(lcApplication) << "Will move the individual files" << filesList;
281+
qCDebug(lcApplication) << "Will move the individual files" << filesList;
282282
for (const auto &name : filesList) {
283283
if (!QFile::rename(legacyDir + "/" + name, confDir + "/" + name)) {
284-
qCWarning(lcApplication) << "Fallback move of " << name << "also failed";
284+
qCDebug(lcApplication) << "Fallback move of " << name << "also failed";
285285
}
286286
}
287287
}
@@ -579,17 +579,17 @@ void Application::setupConfigFile()
579579
confDir.chop(1);
580580
}
581581

582-
qCInfo(lcApplication) << "Migrating old config from" << oldDir << "to" << confDir;
582+
qCDebug(lcApplication) << "Migrating old config from" << oldDir << "to" << confDir;
583583
if (!QFile::rename(oldDir, confDir)) {
584-
qCWarning(lcApplication) << "Failed to move the old config directory to its new location (" << oldDir << "to" << confDir << ")";
584+
qCDebug(lcApplication) << "Failed to move the old config directory to its new location (" << oldDir << "to" << confDir << ")";
585585

586586
// Try to move the files one by one
587587
if (QFileInfo(confDir).isDir() || QDir().mkdir(confDir)) {
588588
const QStringList filesList = QDir(oldDir).entryList(QDir::Files);
589-
qCInfo(lcApplication) << "Will move the individual files" << filesList;
589+
qCDebug(lcApplication) << "Will move the individual files" << filesList;
590590
for (const auto &name : filesList) {
591591
if (!QFile::rename(oldDir + "/" + name, confDir + "/" + name)) {
592-
qCWarning(lcApplication) << "Fallback move of " << name << "also failed";
592+
qCDebug(lcApplication) << "Fallback move of " << name << "also failed";
593593
}
594594
}
595595
}

0 commit comments

Comments
 (0)