diff --git a/src/tracker/statistics_importer.rs b/src/tracker/statistics_importer.rs index 08667a0d..91c649df 100644 --- a/src/tracker/statistics_importer.rs +++ b/src/tracker/statistics_importer.rs @@ -39,11 +39,13 @@ impl StatisticsImporter { let ret = self.import_torrent_statistics(torrent.torrent_id, &torrent.info_hash).await; if let Some(err) = ret.err() { - let message = format!( - "Error updating torrent tracker stats for torrent with id {}: {:?}", - torrent.torrent_id, err - ); - error!(target: "statistics_importer", "{}", message); + if err != TrackerAPIError::TorrentNotFound { + let message = format!( + "Error updating torrent tracker stats for torrent. Torrent: id {}; infohash {}. Error: {:?}", + torrent.torrent_id, torrent.info_hash, err + ); + error!(target: "statistics_importer", "{}", message); + } } }