Skip to content

Commit

Permalink
Merge pull request #7 from adilansari/exceptions
Browse files Browse the repository at this point in the history
Exceptions
  • Loading branch information
adilansari committed Apr 21, 2015
2 parents b94f3da + 7e4ed05 commit 39afe7b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions README.mkd
Expand Up @@ -59,3 +59,11 @@ from scribe_logger.writer import ScribeWriter
writer = ScribeWriter('localhost', 1464, 'category')
writer.write('my message')
````



#### Contributors
--------------
@adilansari
@mwhooker
@lenn0x
3 changes: 2 additions & 1 deletion scribe_logger/logger.py
Expand Up @@ -18,11 +18,12 @@ def emit(self, record):
record = self.format(record)
try:
self.write(record)
self.flush()
except (KeyboardInterrupt, SystemExit):
raise
except:
self.handleError(record)
finally:
self.flush()

def flush(self):
pass

0 comments on commit 39afe7b

Please sign in to comment.