Skip to content

Commit

Permalink
Modified the circuits.web Logger to use the response_success event. F…
Browse files Browse the repository at this point in the history
…ixes Issue #94
  • Loading branch information
James Mills committed Apr 7, 2014
1 parent a391b0e commit 45fe299
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES.rst
Expand Up @@ -6,6 +6,7 @@ Change Log
==========


- :feature:`94` Modified the :class:`circuits.web.Logger` to use the ``response_success`` event.
- :support:`86` Telnet Tutorial
- :bug:`47 major` Dispatcher does not fully respect optional arguments. web
- :support:`61` circuits.web documentation enhancements docs
Expand Down
5 changes: 3 additions & 2 deletions circuits/web/loggers.py
Expand Up @@ -43,8 +43,9 @@ def __init__(self, file=None, logger=None, **kwargs):

self.logger = logger

@handler("response", priority=-0.1)
def response(self, response):
@handler("response_success")
def log_response(self, response_event, value):
response = response_event.args[0]
self.log(response)

def log(self, response):
Expand Down

0 comments on commit 45fe299

Please sign in to comment.