Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

don't drop non-ERROR messages. use handler.setLevel(logging.LEVEL) to…

… determine what gets filtered.
  • Loading branch information...
commit 7554f751ac99ce4b23aa134d9e585a1a9253f181 1 parent a7c8e95
Daniel Gross authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 python/logging/greplin/gec/logHandler.py
View
4 python/logging/greplin/gec/logHandler.py
@@ -41,10 +41,8 @@ def emit(self, item):
"""Emit an error from the given event, if it was an error event."""
if item.exc_info:
formatted = self.formatException(item)
- elif item.levelname == "ERROR":
- formatted = self.formatLogMessage(item)
else:
- return
+ formatted = self.formatLogMessage(item)
result = {
'project': self.__project,
'environment': self.__environment,
Please sign in to comment.
Something went wrong with that request. Please try again.