bobbui/json-logging-python

Broken on Python 2.7 due to super()

mmabreu opened this issue · 2 comments

It seems that 1.1.0 is broken on Python 2.7 due to using super() without arguments:

TypeError: super() takes at least 1 argument (0 given)
Logged from file init.py, line 57

Traceback (most recent call last):
File "/usr/local/lib/python2.7/logging/init.py", line 868, in emit
msg = self.format(record)
File "/usr/local/lib/python2.7/logging/init.py", line 741, in format
return fmt.format(record)
File "/usr/local/lib/python2.7/site-packages/json_logging/init.py", line 228, in format
log_object = self._format_log_object(record, request_util=_request_util)
File "/usr/local/lib/python2.7/site-packages/json_logging/init.py", line 326, in _format_log_object
json_log_object = super()._format_log_object(record, request_util)

will take a look

fixed in 1.2.0