Merged in feature/PYPE-235_ftrack_minor_fixes (pull request #91)

added log that action has finished

Approved-by: Milan Kolar <milan@orbi.tools>
This commit is contained in:
Milan Kolar 2019-03-08 11:41:40 +00:00
commit fa76207875

View file

@ -92,12 +92,12 @@ class BaseHandler(object):
label = '{} {}'.format(self.label, self.variant)
try:
self.log.info((
'{} "{}" Launched'
).format(self.type, label))
return func(*args, **kwargs)
self.log.info(('{} "{}": Launched').format(self.type, label))
result = func(*args, **kwargs)
self.log.info(('{} "{}": Finished').format(self.type, label))
return result
except Exception as e:
self.log.error('{} "{}": Launch failed ({})'.format(
self.log.error('{} "{}": Failed ({})'.format(
self.type, label, str(e))
)
return wrapper_launch