severb / graypy

Python logging handler for Graylog that sends messages in GELF (Graylog Extended Log Format).
https://www.graylog.org/
BSD 3-Clause "New" or "Revised" License
258 stars 90 forks source link

last release not working? #49

Closed trisch-me closed 8 years ago

trisch-me commented 9 years ago

Hi I'm not sure why it doesn't work, maybe some non-printable character inside? But the latest version doesn't work

  File "/usr/local/lib/python2.6/dist-packages/graypy/__init__.py", line 1, in <module>
    from graypy.handler import GELFHandler, WAN_CHUNK, LAN_CHUNK
  File "/usr/local/lib/python2.6/dist-packages/graypy/handler.py", line 167
    return {sanitize(k): sanitize(v) for k, v in obj.items()}
                                       ^
SyntaxError: invalid syntax
trisch-me commented 9 years ago

so, last version is not back compatible with python 2.6 because of dict comprehension. see http://stackoverflow.com/questions/14915574/syntax-differences-between-python-2-6-1-and-2-7-3