Skip to content

Commit

Permalink
fix(sql): Treat a 404 from listObjectVersions() as debug vs error
Browse files Browse the repository at this point in the history
  • Loading branch information
ajordens committed Jul 8, 2019
1 parent b16db6b commit 4f6d7aa
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,15 @@ class CompositeStorageService(
if (isPrimaryReadEnabled()) {
try {
return primary.listObjectVersions(objectType, objectKey, maxResults)
} catch (e: NotFoundException) {
log.debug("{}.listObjectVersions({}, {}, {}) not found (primary)",
primary.javaClass.simpleName,
objectType,
objectKey,
maxResults
)

exception = e
} catch (e: Exception) {
log.error(
"{}.listObjectVersions({}, {}, {}) failed (primary)",
Expand Down

0 comments on commit 4f6d7aa

Please sign in to comment.