def rollover_callback(): handler = get_handler("file") if handler is None: return logger = logging.getLogger("octoprint.server") def _log(message, level=logging.INFO): log_to_handler(logger, handler, level, message) _log(get_divider_line("-", "Log roll over detected")) _log("OctoPrint {}".format(__display_version__)) if safe_mode: _log("SAFE MODE is active. Third party plugins are disabled!") plugin_manager.log_all_plugins(only_to_handler=handler) _log(get_divider_line("-"))
def rollover_callback(): handler = get_handler("file") if handler is None: return logger = logging.getLogger("octoprint.server") def _log(message, level=logging.INFO): log_to_handler(logger, handler, level, message) _log(get_divider_line("-", "Log roll over detected")) _log("OctoPrint {}".format(__display_version__)) if safe_mode: _log("SAFE MODE is active. Third party plugins are disabled!") plugin_manager.log_all_plugins(only_to_handler=handler) _log(get_divider_line("-"))