mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
fixed ftrack action labels issue
This commit is contained in:
parent
00f04cafc2
commit
82d05de4e7
1 changed files with 4 additions and 5 deletions
|
|
@ -94,13 +94,12 @@ class BaseHandler(object):
|
|||
def launch_log(self, func):
|
||||
@functools.wraps(func)
|
||||
def wrapper_launch(*args, **kwargs):
|
||||
label = self.__class__.__name__
|
||||
if hasattr(self, 'label'):
|
||||
label = self.label
|
||||
if hasattr(self, 'variant'):
|
||||
label = '{} {}'.format(self.label, self.variant)
|
||||
else:
|
||||
label = self.label
|
||||
else:
|
||||
label = self.__class__.__name__
|
||||
if self.variant is not None:
|
||||
label = '{} {}'.format(self.label, self.variant)
|
||||
|
||||
self.log.info(('{} "{}": Launched').format(self.type, label))
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue