Removed Debug logs from user-view

This commit is contained in:
NeilClack
2026-08-15 15:43:49 -05:00
parent f14bf3e29a
commit e401bd4ec5
14 changed files with 198 additions and 39 deletions
+4 -4
View File
@@ -367,7 +367,7 @@ void AudioDownloader::run() {
if (stop_.load()) break;
setStatus("Downloading audio files (" + std::to_string(downloaded + 1) +
" / " + std::to_string(queue.size()) + ")...");
if (!downloadAndVerify(work.filename, work.md5)) break;
if (!downloadAndVerify(work.filename, work.md5, work.display_name)) break;
addAvailable(work);
++downloaded;
// Publish immediately so a file that just finished downloading
@@ -388,7 +388,7 @@ void AudioDownloader::run() {
continue;
}
if (orderByFilename.count(name) == 0) {
logger::Logger::instance().info("Audio", "Removing leftover " + name);
logger::Logger::instance().debug("Audio", "Removing leftover " + name);
std::filesystem::remove(it->path(), ec);
}
}
@@ -425,7 +425,7 @@ bool AudioDownloader::fetchManifest(std::vector<AudioManifestEntry>& out) {
return true;
}
bool AudioDownloader::downloadAndVerify(const std::string& filename, const std::string& expectedMd5) {
bool AudioDownloader::downloadAndVerify(const std::string& filename, const std::string& expectedMd5, const std::string& displayName) {
std::string dir = audioDir();
std::string destPath = dir + filename;
std::string tmpPath = destPath + ".part";
@@ -454,7 +454,7 @@ bool AudioDownloader::downloadAndVerify(const std::string& filename, const std::
return false;
}
logger::Logger::instance().info("Audio", "Downloaded and verified " + filename);
logger::Logger::instance().info("Audio", "Downloaded and verified " + displayName);
return true;
}