From 798426a8b4910dae3b9d7005cd1ae1ae7a102c47 Mon Sep 17 00:00:00 2001 From: jgoldste <0uTfr1p@n> Date: Wed, 26 Aug 2020 08:19:18 -0600 Subject: [PATCH] SSA-6324: fixes locking message problem discovered in SSA-6458 --- .../src/proprietary_setter/prop_setter.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 b9851b6f6..aea8d2fc8 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') -- GitLab