mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 03:03:57 +08:00
fish_config: Log the path for errors
This commit is contained in:
parent
9fc8729b96
commit
7493c9a040
|
@ -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 = """
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
|
Loading…
Reference in New Issue
Block a user