Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions logstash/formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def get_extra_fields(self, record):

def get_debug_fields(self, record):
fields = {
'exc_info': self.format_exception(record.exc_info),
'exc_info': self.formatException(record.exc_info),
'lineno': record.lineno,
'process': record.process,
'threadName': record.threadName,
Expand All @@ -72,10 +72,6 @@ def format_timestamp(cls, time):
tstamp = datetime.utcfromtimestamp(time)
return tstamp.strftime("%Y-%m-%dT%H:%M:%S") + ".%03d" % (tstamp.microsecond / 1000) + "Z"

@classmethod
def format_exception(cls, exc_info):
return ''.join(traceback.format_exception(*exc_info)) if exc_info else ''

@classmethod
def serialize(cls, message):
if sys.version_info < (3, 0):
Expand Down