diff options
author | John Dennis <jdennis@redhat.com> | 2015-01-20 17:13:34 -0500 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2015-01-26 13:34:06 -0500 |
commit | e85f190d8e081fbbfeadca24781266d1c3e1bba1 (patch) | |
tree | b8cd9287b5a6ea5943d248b75247fc5793f738fe /templates/install/ipsilon.conf | |
parent | 9a941b4aa2e39723d93a37fcb31475c6e9038943 (diff) | |
download | ipsilon-e85f190d8e081fbbfeadca24781266d1c3e1bba1.tar.gz ipsilon-e85f190d8e081fbbfeadca24781266d1c3e1bba1.tar.xz ipsilon-e85f190d8e081fbbfeadca24781266d1c3e1bba1.zip |
Add request/response logging via cherrypy tool hooks
The ability to easily review the HTTP Ipsilon request and response is
boon for development and issue debugging. Normally these HTTP
conversations occur on SSL/TLS encrypted connections making it
difficult to use other tools to view the traffic. Client side tools
have known pitfalls (e.g. Firebug) and not all conversations are
browser initiated (e.g. SAML ECP). Logging performed by the server
hosting Ipsilon makes logging at the server level server specific
(e.g. Apache's dumpio requires post-processing the log file to extract
and reassamble the HTTP conversation). The best place to log requests
and responses is within Ipsilon using the cherrypy framework
Ipsilon is embedded in. Cherrypy provides user defined hooks that can
be invoked at specific places in the request pipeline. We establish a
hook at the last stage just before the response is written to the
client, it logs the incoming request and outgoing response.
Resolves: https://fedorahosted.org/ipsilon/ticket/44
Signed-off-by: John Dennis <jdennis@redhat.com>
Reviewed-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'templates/install/ipsilon.conf')
-rw-r--r-- | templates/install/ipsilon.conf | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/templates/install/ipsilon.conf b/templates/install/ipsilon.conf index 4b170ca..522cb38 100644 --- a/templates/install/ipsilon.conf +++ b/templates/install/ipsilon.conf @@ -1,5 +1,6 @@ [global] debug = ${debugging} +tools.log_request_response.on = False template_dir = "templates" log.screen = ${debugging} |