def render_diagnostic(self, diagnostic): message = "While compiling {}\n".format(experiment_file) + \ _render_diagnostic(diagnostic, colored=False) if repository_path is not None: message = message.replace(repository_path, "<repository>") if diagnostic.level == "warning": logging.warn(message) else: logging.error(message)
def render_diagnostic(self, diagnostic): message = "While compiling {}\n".format(experiment_file) + \ _render_diagnostic(diagnostic, colored=False) if repository_path is not None: message = message.replace(repository_path, "<repository>") if diagnostic.level == "warning": logging.warn(message) else: logging.error(message)