From b1a519c72aa92d6977620421fdb41a0d392c7d01 Mon Sep 17 00:00:00 2001 From: Jakub Trllo Date: Mon, 28 Jan 2019 17:54:08 +0100 Subject: [PATCH] added basic debug log to create custom attributes --- pype/ftrack/actions/action_create_cust_attrs.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pype/ftrack/actions/action_create_cust_attrs.py b/pype/ftrack/actions/action_create_cust_attrs.py index 9cf79daecf..8e926fb313 100644 --- a/pype/ftrack/actions/action_create_cust_attrs.py +++ b/pype/ftrack/actions/action_create_cust_attrs.py @@ -291,6 +291,9 @@ class CustomAttributes(BaseAction): if len(matching) == 0: self.session.create('CustomAttributeConfiguration', data) self.session.commit() + self.log.debug( + '{}: "{}" created'.format(self.label, data['label']) + ) elif len(matching) == 1: attr_update = matching[0] @@ -301,6 +304,10 @@ class CustomAttributes(BaseAction): ] ): attr_update[key] = data[key] + + self.log.debug( + '{}: "{}" updated'.format(self.label, data['label']) + ) self.session.commit() else: