Reduce redundant logging

This commit is contained in:
kssenii 2023-07-30 13:51:10 +02:00
parent 9291e4993a
commit 0cf93e7114

View File

@ -258,7 +258,10 @@ void FileSegment::resetDownloader()
void FileSegment::resetDownloaderUnlocked(const FileSegmentGuard::Lock &) void FileSegment::resetDownloaderUnlocked(const FileSegmentGuard::Lock &)
{ {
// LOG_TEST(log, "Resetting downloader from {}", downloader_id); if (downloader_id.empty())
return;
LOG_TEST(log, "Resetting downloader from {}", downloader_id);
downloader_id.clear(); downloader_id.clear();
} }