def __toggle_debug_logging(self): """ Toggles global debug logging on and off in the log manager. This will affect all logging across all of toolkit. """ # flip debug logging LogManager().global_debug = not LogManager().global_debug
def __toggle_debug_logging(self): """ Toggles global debug logging on and off in the log manager. This will affect all logging across all of toolkit. """ self.logger.debug("calling substance painer with debug: %s" % LogManager().global_debug) # flip debug logging LogManager().global_debug = not LogManager().global_debug if self.app: self.app.toggle_debug_logging(LogManager().global_debug)
def __open_log_folder(self): """ Opens the file system folder where log files are being stored. """ self.log_info("Log folder location: '%s'" % LogManager().log_folder) if self.has_ui: # only import QT if we have a UI from sgtk.platform.qt import QtGui, QtCore url = QtCore.QUrl.fromLocalFile(LogManager().log_folder) status = QtGui.QDesktopServices.openUrl(url) if not status: self._engine.log_error("Failed to open folder!")