From a44578116775fe0d05c44041ae1e9f83f367a919 Mon Sep 17 00:00:00 2001 From: sawinglogz <3787776-sawinglogz@users.noreply.gitlab.com> Date: Thu, 28 Oct 2021 14:01:33 -0400 Subject: [PATCH] Remove noisy debug message in PRS1 loader. In theory it was useful to know why files were skipped, but in practice we normally skip all but the most recent files, often thousands. If you had the misfortune to have the debug pane open, you'd have to wait for an extra minute or two for all those messages to scroll by. If and when we can limit import scanning to files that are new or changed, then the debug message will be useful again. --- oscar/SleepLib/loader_plugins/prs1_loader.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/oscar/SleepLib/loader_plugins/prs1_loader.cpp b/oscar/SleepLib/loader_plugins/prs1_loader.cpp index 1314c0cf..144d6b70 100644 --- a/oscar/SleepLib/loader_plugins/prs1_loader.cpp +++ b/oscar/SleepLib/loader_plugins/prs1_loader.cpp @@ -977,7 +977,8 @@ void PRS1Loader::ScanFiles(const QStringList & paths, int sessionid_base) // imported files without re-reading all of them. if (context()->SessionExists(sid)) { // Skip already imported session - qDebug() << path << "session already exists, skipping" << sid; + // TODO: Consider reinstating this debug statement if/when we scan only new/changed files. + //qDebug() << path << "session already exists, skipping" << sid; continue; }