Skip to content

Commit

Permalink
- Make it possible to send exceptions to a logger channel as described
Browse files Browse the repository at this point in the history
  in the docs; this didn't actually work previously because a) I'm not
  very good at programming and b) the Python logging module is
  terrible (using ``s[-1]`` and not catching an exception when the
  string is empty rather than using ``s.endswith()``, at least under
  Python 2.4).
  • Loading branch information
mcdonc committed May 24, 2010
1 parent b7bbf46 commit a7dc06e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion CHANGES.txt
@@ -1,7 +1,12 @@
Next release
------------

- ...
- Make it possible to send exceptions to a logger channel as described
in the docs; this didn't actually work previously because a) I'm not
very good at programming and b) the Python logging module is
terrible (using ``s[-1]`` and not catching an exception when the
string is empty rather than using ``s.endswith()``, at least under
Python 2.4).

0.9 (2010-05-23)
----------------
Expand Down
2 changes: 1 addition & 1 deletion repoze/errorlog/__init__.py
Expand Up @@ -93,7 +93,7 @@ def __call__(self, environ, start_response):
traceback.print_exc(None, errors)
else:
logger = getLogger(self.channel)
logger.exception('')
logger.exception('\n')
raise

def index(self, url):
Expand Down

0 comments on commit a7dc06e

Please sign in to comment.