mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Merge pull request #5596 from BigRoy/enhancement/ftrack_tweak_artist_logging
Ftrack: Less verbose logs for Ftrack integration in artist facing logs
This commit is contained in:
commit
5a500b3808
5 changed files with 12 additions and 12 deletions
|
|
@ -724,7 +724,7 @@ def get_ffprobe_data(path_to_file, logger=None):
|
||||||
"""
|
"""
|
||||||
if not logger:
|
if not logger:
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
logger.info(
|
logger.debug(
|
||||||
"Getting information about input \"{}\".".format(path_to_file)
|
"Getting information about input \"{}\".".format(path_to_file)
|
||||||
)
|
)
|
||||||
ffprobe_args = get_ffmpeg_tool_args("ffprobe")
|
ffprobe_args = get_ffmpeg_tool_args("ffprobe")
|
||||||
|
|
|
||||||
|
|
@ -27,8 +27,8 @@ class IntegrateFtrackApi(pyblish.api.InstancePlugin):
|
||||||
def process(self, instance):
|
def process(self, instance):
|
||||||
component_list = instance.data.get("ftrackComponentsList")
|
component_list = instance.data.get("ftrackComponentsList")
|
||||||
if not component_list:
|
if not component_list:
|
||||||
self.log.info(
|
self.log.debug(
|
||||||
"Instance don't have components to integrate to Ftrack."
|
"Instance doesn't have components to integrate to Ftrack."
|
||||||
" Skipping."
|
" Skipping."
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
|
|
@ -37,7 +37,7 @@ class IntegrateFtrackApi(pyblish.api.InstancePlugin):
|
||||||
task_entity, parent_entity = self.get_instance_entities(
|
task_entity, parent_entity = self.get_instance_entities(
|
||||||
instance, context)
|
instance, context)
|
||||||
if parent_entity is None:
|
if parent_entity is None:
|
||||||
self.log.info((
|
self.log.debug((
|
||||||
"Skipping ftrack integration. Instance \"{}\" does not"
|
"Skipping ftrack integration. Instance \"{}\" does not"
|
||||||
" have specified ftrack entities."
|
" have specified ftrack entities."
|
||||||
).format(str(instance)))
|
).format(str(instance)))
|
||||||
|
|
@ -323,7 +323,7 @@ class IntegrateFtrackApi(pyblish.api.InstancePlugin):
|
||||||
"type_id": asset_type_id,
|
"type_id": asset_type_id,
|
||||||
"context_id": parent_id
|
"context_id": parent_id
|
||||||
}
|
}
|
||||||
self.log.info("Created new Asset with data: {}.".format(asset_data))
|
self.log.debug("Created new Asset with data: {}.".format(asset_data))
|
||||||
session.create("Asset", asset_data)
|
session.create("Asset", asset_data)
|
||||||
session.commit()
|
session.commit()
|
||||||
return self._query_asset(session, asset_name, asset_type_id, parent_id)
|
return self._query_asset(session, asset_name, asset_type_id, parent_id)
|
||||||
|
|
@ -384,7 +384,7 @@ class IntegrateFtrackApi(pyblish.api.InstancePlugin):
|
||||||
if comment:
|
if comment:
|
||||||
new_asset_version_data["comment"] = comment
|
new_asset_version_data["comment"] = comment
|
||||||
|
|
||||||
self.log.info("Created new AssetVersion with data {}".format(
|
self.log.debug("Created new AssetVersion with data {}".format(
|
||||||
new_asset_version_data
|
new_asset_version_data
|
||||||
))
|
))
|
||||||
session.create("AssetVersion", new_asset_version_data)
|
session.create("AssetVersion", new_asset_version_data)
|
||||||
|
|
@ -555,7 +555,7 @@ class IntegrateFtrackApi(pyblish.api.InstancePlugin):
|
||||||
location=location
|
location=location
|
||||||
)
|
)
|
||||||
data["component"] = component_entity
|
data["component"] = component_entity
|
||||||
self.log.info(
|
self.log.debug(
|
||||||
(
|
(
|
||||||
"Created new Component with path: {0}, data: {1},"
|
"Created new Component with path: {0}, data: {1},"
|
||||||
" metadata: {2}, location: {3}"
|
" metadata: {2}, location: {3}"
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ class IntegrateFtrackDescription(pyblish.api.InstancePlugin):
|
||||||
|
|
||||||
comment = instance.data["comment"]
|
comment = instance.data["comment"]
|
||||||
if not comment:
|
if not comment:
|
||||||
self.log.info("Comment is not set.")
|
self.log.debug("Comment is not set.")
|
||||||
else:
|
else:
|
||||||
self.log.debug("Comment is set to `{}`".format(comment))
|
self.log.debug("Comment is set to `{}`".format(comment))
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ class IntegrateFtrackNote(pyblish.api.InstancePlugin):
|
||||||
app_label = context.data["appLabel"]
|
app_label = context.data["appLabel"]
|
||||||
comment = instance.data["comment"]
|
comment = instance.data["comment"]
|
||||||
if not comment:
|
if not comment:
|
||||||
self.log.info("Comment is not set.")
|
self.log.debug("Comment is not set.")
|
||||||
else:
|
else:
|
||||||
self.log.debug("Comment is set to `{}`".format(comment))
|
self.log.debug("Comment is set to `{}`".format(comment))
|
||||||
|
|
||||||
|
|
@ -127,14 +127,14 @@ class IntegrateFtrackNote(pyblish.api.InstancePlugin):
|
||||||
|
|
||||||
note_text = StringTemplate.format_template(template, format_data)
|
note_text = StringTemplate.format_template(template, format_data)
|
||||||
if not note_text.solved:
|
if not note_text.solved:
|
||||||
self.log.warning((
|
self.log.debug((
|
||||||
"Note template require more keys then can be provided."
|
"Note template require more keys then can be provided."
|
||||||
"\nTemplate: {}\nMissing values for keys:{}\nData: {}"
|
"\nTemplate: {}\nMissing values for keys:{}\nData: {}"
|
||||||
).format(template, note_text.missing_keys, format_data))
|
).format(template, note_text.missing_keys, format_data))
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if not note_text:
|
if not note_text:
|
||||||
self.log.info((
|
self.log.debug((
|
||||||
"Note for AssetVersion {} would be empty. Skipping."
|
"Note for AssetVersion {} would be empty. Skipping."
|
||||||
"\nTemplate: {}\nData: {}"
|
"\nTemplate: {}\nData: {}"
|
||||||
).format(asset_version["id"], template, format_data))
|
).format(asset_version["id"], template, format_data))
|
||||||
|
|
|
||||||
|
|
@ -121,7 +121,7 @@ class IntegrateKitsuNote(pyblish.api.ContextPlugin):
|
||||||
publish_comment = self.format_publish_comment(instance)
|
publish_comment = self.format_publish_comment(instance)
|
||||||
|
|
||||||
if not publish_comment:
|
if not publish_comment:
|
||||||
self.log.info("Comment is not set.")
|
self.log.debug("Comment is not set.")
|
||||||
else:
|
else:
|
||||||
self.log.debug("Comment is `{}`".format(publish_comment))
|
self.log.debug("Comment is `{}`".format(publish_comment))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue