mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
OP-2765 - remove wrong logging function
This commit is contained in:
parent
8964fdb754
commit
0858ee0ce8
3 changed files with 1 additions and 17 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue