Merge pull request #1285 from BigRoy/enhancement/staging_dir_persistence_log_to_debug

Staging Dir persistence log, change to debug level
This commit is contained in:
Jakub Trllo 2025-05-30 09:09:51 +02:00 committed by GitHub
commit dc9ecbe1b1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -32,16 +32,16 @@ class CollectManagedStagingDir(pyblish.api.InstancePlugin):
label = "Collect Managed Staging Directory"
order = pyblish.api.CollectorOrder + 0.4990
def process(self, instance):
def process(self, instance: pyblish.api.Instance):
""" Collect the staging data and stores it to the instance.
Args:
instance (object): The instance to inspect.
"""
staging_dir_path = get_instance_staging_dir(instance)
persistance = instance.data.get("stagingDir_persistent", False)
persistence: bool = instance.data.get("stagingDir_persistent", False)
self.log.info((
self.log.debug(
f"Instance staging dir was set to `{staging_dir_path}` "
f"and persistence is set to `{persistance}`"
))
f"and persistence is set to `{persistence}`"
)