From 7493c9a0409edeebb4caed9bb76d0cba2c33cf37 Mon Sep 17 00:00:00 2001 From: Kevin Ballard Date: Thu, 9 Oct 2014 18:33:59 -0700 Subject: [PATCH] fish_config: Log the path for errors --- share/tools/web_config/webconfig.py | 9 +++++++++ 1 file changed, 9 insertions(+) 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 = """