mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-03-13 04:11:07 +00:00
Enhance debugging information for applied bounties and penalties
This commit is contained in:
parent
287a9d328c
commit
be5a378da5
@ -281,12 +281,14 @@ class AgePolicy(BasePolicy):
|
||||
|
||||
days_old = self._date_now - self._dates[source_name][1]
|
||||
min_days = self._min_days[urgency]
|
||||
for bounty in excuse.bounty.values():
|
||||
self.log('Applying bounty: %d days' % bounty)
|
||||
min_days -= bounty
|
||||
for penalty in excuse.penalty.values():
|
||||
self.log('Applying penalty: %d days' % penalty)
|
||||
min_days += penalty
|
||||
for bounty in excuse.bounty:
|
||||
self.log('Applying bounty for %s granted by %s: %d days' %
|
||||
(source_name, bounty, excuse.bounty[bounty]))
|
||||
min_days -= excuse.bounty[bounty]
|
||||
for penalty in excuse.penalty:
|
||||
self.log('Applying penalty for %s given by %s: %d days' %
|
||||
(source_name, penalty, excuse.penalty[penalty]))
|
||||
min_days += excuse.penalty[penalty]
|
||||
age_info['age-requirement'] = min_days
|
||||
age_info['current-age'] = days_old
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user