From 2abe67a24c9faaf12e5002734b28494b3f14c6a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Fri, 23 Mar 2018 15:27:12 +0100 Subject: [PATCH] Logging: Discourage disabling this plugin --- src/octoprint/plugins/logging/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/octoprint/plugins/logging/__init__.py b/src/octoprint/plugins/logging/__init__.py index 06fcab632..91da040c8 100644 --- a/src/octoprint/plugins/logging/__init__.py +++ b/src/octoprint/plugins/logging/__init__.py @@ -11,6 +11,7 @@ from octoprint.server import NO_CONTENT, admin_permission from octoprint.server.util.flask import redirect_to_tornado, restricted_access from flask import request, jsonify, url_for, make_response +from flask_babel import gettext from werkzeug.utils import secure_filename from werkzeug.exceptions import BadRequest import yaml @@ -200,4 +201,7 @@ class LoggingPlugin(octoprint.plugin.AssetPlugin, __plugin_name__ = "Logging" __plugin_author__ = "Shawn Bruce, based on work by Gina Häußge and Marc Hannappel" __plugin_description__ = "Provides access to OctoPrint's logs and logging configuration." +__plugin_disabling_discouraged__ = gettext("Without this plugin you will no longer be able to retrieve " + "OctoPrint's logs or modify the current logging levels through " + "the web interface.") __plugin_implementation__ = LoggingPlugin()