diff --git a/apps/cli/utilities/proprietary_setter/src/proprietary_setter/prop_setter.py b/apps/cli/utilities/proprietary_setter/src/proprietary_setter/prop_setter.py index b9851b6f64ae9f963497400efb6ef5034e1b2ee1..aea8d2fc815f9f1f2c7b32148046ed976ebf669b 100644 --- a/apps/cli/utilities/proprietary_setter/src/proprietary_setter/prop_setter.py +++ b/apps/cli/utilities/proprietary_setter/src/proprietary_setter/prop_setter.py @@ -113,7 +113,7 @@ class ProprietaryPeriodSetter: _LOG.info('(This is where we would have updated the ' 'legacy archive if we were in production.)') legacy_session.rollback() - self.announce_update() + self.announce_update(legacy_proj[0].stoptime) except UpdateException as exc: _LOG.error(f'update failure: {exc}') @@ -184,7 +184,7 @@ class ProprietaryPeriodSetter: _LOG.error(f'{ex}') sys.exit(3) - def announce_update(self): + def announce_update(self, stoptime): ''' Set up a LogHandler to record the fact we just made a change to this project. @@ -212,7 +212,7 @@ class ProprietaryPeriodSetter: _LOG.info(f'Attempting to update proprietary period for ' f'{self.project}.') if self.new_duration_days != 0: - _LOG.info(f'Locking for {self.new_duration_days} days from today') + _LOG.info(f'Locking for {self.new_duration_days} days from {stoptime}') else: _LOG.info('Unlocking')