Skip to content

Commit

Permalink
Download counts: enhance logging in errors (#7853)
Browse files Browse the repository at this point in the history
  • Loading branch information
szakarias authored Jul 5, 2024
1 parent b1d6964 commit d0e4e07
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions app/lib/service/download_counts/sync_download_counts.dart
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,13 @@ Future<bool> processDownloadCounts(
// If the data is generated before the fix of the query, we
// ignore versions that do not exist.
_logger.warning(
'Version $version appeared in download counts data but '
'does not exist');
'$package-$version appeared in download counts data but does'
' not exist');
} else {
hasPartiallyFailedLines = true;
_logger.severe(
'Version $version appeared in download counts data but '
'does not exist');
'$package-$version appeared in download counts data but does'
' not exist');
}
}
});
Expand All @@ -139,7 +139,8 @@ Future<bool> processDownloadCounts(
(await packageBackend.lookupModeratedPackage(package)) == null) {
_logger.severe(
'Package $package appeared in download counts data for file '
'$e');
'$downloadCountsFileName'
'Error: $e');
} // else {
// The package is either invisible, tombstoned or has no versions.
// }
Expand Down

0 comments on commit d0e4e07

Please sign in to comment.