diff --git a/share/tools/web_config/webconfig.py b/share/tools/web_config/webconfig.py index c77d69b26..a6f11f22d 100755 --- a/share/tools/web_config/webconfig.py +++ b/share/tools/web_config/webconfig.py @@ -829,6 +829,15 @@ class FishConfigHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): """ Disable request logging """ pass + def log_error(self, format, *args): + if format == 'code %d, message %s': + # This appears to be a send_error() message + # We want to include the path + (code, msg) = args + format = 'code %d, message %s, path %s' + args = (code, msg, self.path) + SimpleHTTPServer.SimpleHTTPRequestHandler.log_error(self, format, *args) + redirect_template_html = """