mirror of
https://github.com/jlengrand/bugsink.git
synced 2026-03-10 08:01:17 +00:00
docstring
This commit is contained in:
@@ -3,6 +3,9 @@ from sentry.utils.strings import strip, truncatechars
|
||||
|
||||
|
||||
class DefaultEvent:
|
||||
"""The DefaultEvent is the Event for which there is no exception set. Given the implementation of `get_title`, I'd
|
||||
actually say that this is basically the LogMessageEvent.
|
||||
"""
|
||||
|
||||
def get_title(self, data):
|
||||
message = strip(
|
||||
@@ -12,4 +15,5 @@ class DefaultEvent:
|
||||
|
||||
if message:
|
||||
return truncatechars(message.splitlines()[0], 100)
|
||||
|
||||
return "<unlabeled event>"
|
||||
|
||||
Reference in New Issue
Block a user