OP-2765 - remove wrong logging function

This commit is contained in:
Petr Kalis 2022-03-23 17:15:46 +01:00
parent 8964fdb754
commit 0858ee0ce8
3 changed files with 1 additions and 17 deletions

View file

@ -2,8 +2,6 @@ import os
from avalon import api
import pyblish.api
from openpype.lib import debug_log_instance
class CollectWorkfile(pyblish.api.ContextPlugin):
""" Adds the AE render instances """
@ -76,5 +74,3 @@ class CollectWorkfile(pyblish.api.ContextPlugin):
}
instance.data["representations"].append(representation)
debug_log_instance(self.log, "Workfile instance", instance)

View file

@ -63,7 +63,7 @@ from .execute import (
path_to_subprocess_arg,
CREATE_NO_WINDOW
)
from .log import PypeLogger, timeit, debug_log_instance
from .log import PypeLogger, timeit
from .path_templates import (
merge_dict,
@ -369,7 +369,6 @@ __all__ = [
"OpenPypeMongoConnection",
"timeit",
"debug_log_instance",
"is_overlapping_otio_ranges",
"otio_range_with_handles",

View file

@ -498,14 +498,3 @@ def timeit(method):
print('%r %2.2f ms' % (method.__name__, (te - ts) * 1000))
return result
return timed
def debug_log_instance(logger, msg, instance):
"""Helper function to write instance.data as json"""
def _default_json(value):
return str(value)
logger.debug(msg)
logger.debug(
json.dumps(instance.data, indent=4, default=_default_json)
)