Skip to content

Commit

Permalink
WX-1835 Silence quota exhaustion logging when empty (#7561)
Browse files Browse the repository at this point in the history
  • Loading branch information
aednichols committed Sep 27, 2024
1 parent 69e7e90 commit 74885ef
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,11 @@ class GroupMetricsActor(engineDbInterface: EngineSqlDatabase,
case LogQuotaExhaustedGroups =>
getQuotaExhaustedGroups() onComplete {
case Success(quotaExhaustedGroups) =>
log.info(
s"Hog groups currently experiencing quota exhaustion: ${quotaExhaustedGroups.length}. Group IDs: [${quotaExhaustedGroups.toList
.mkString(", ")}]."
)
if (quotaExhaustedGroups.nonEmpty)
log.info(
s"Hog groups currently experiencing quota exhaustion: ${quotaExhaustedGroups.length}. Group IDs: [${quotaExhaustedGroups.toList
.mkString(", ")}]."
)
case Failure(exception) =>
log.info(
s"Something went wrong when fetching quota exhausted groups for logging. Will retry in ${loggingInterval
Expand Down

0 comments on commit 74885ef

Please sign in to comment.