mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
fix(nuke): remove commented code
This commit is contained in:
parent
ae59f724a1
commit
fb710bbef4
1 changed files with 0 additions and 36 deletions
|
|
@ -33,42 +33,6 @@ if os.getenv("PYBLISH_GUI", None):
|
||||||
pyblish.register_gui(os.getenv("PYBLISH_GUI", None))
|
pyblish.register_gui(os.getenv("PYBLISH_GUI", None))
|
||||||
|
|
||||||
|
|
||||||
# class NukeHandler(logging.Handler):
|
|
||||||
# '''
|
|
||||||
# Nuke Handler - emits logs into nuke's script editor.
|
|
||||||
# warning will emit nuke.warning()
|
|
||||||
# critical and fatal would popup msg dialog to alert of the error.
|
|
||||||
# '''
|
|
||||||
#
|
|
||||||
# def __init__(self):
|
|
||||||
# logging.Handler.__init__(self)
|
|
||||||
# self.set_name("Pype_Nuke_Handler")
|
|
||||||
#
|
|
||||||
# def emit(self, record):
|
|
||||||
# # Formated message:
|
|
||||||
# msg = self.format(record)
|
|
||||||
#
|
|
||||||
# if record.levelname.lower() in [
|
|
||||||
# # "warning",
|
|
||||||
# "critical",
|
|
||||||
# "fatal",
|
|
||||||
# "error"
|
|
||||||
# ]:
|
|
||||||
# msg = self.format(record)
|
|
||||||
# nuke.message(msg)
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# '''Adding Nuke Logging Handler'''
|
|
||||||
# log.info([handler.get_name() for handler in logging.root.handlers[:]])
|
|
||||||
# nuke_handler = NukeHandler()
|
|
||||||
# if nuke_handler.get_name() \
|
|
||||||
# not in [handler.get_name()
|
|
||||||
# for handler in logging.root.handlers[:]]:
|
|
||||||
# logging.getLogger().addHandler(nuke_handler)
|
|
||||||
# logging.getLogger().setLevel(logging.INFO)
|
|
||||||
# log.info([handler.get_name() for handler in logging.root.handlers[:]])
|
|
||||||
|
|
||||||
|
|
||||||
def reload_config():
|
def reload_config():
|
||||||
"""Attempt to reload pipeline at run-time.
|
"""Attempt to reload pipeline at run-time.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue