New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSV logger does not handle unicode #17

Closed
johnnykv opened this Issue Apr 17, 2016 · 0 comments

Comments

Projects
None yet
1 participant
@johnnykv
Owner

johnnykv commented Apr 17, 2016

Apr 11 08:19:10 heralding heralding[13986]: <Greenlet at 0x7fc384788d70: _handle_and_close_when_done(<bound method SSH.handle_session of <heralding.cap, <bound method Str
eamServer.do_close of <StreamServ, (<socket at 0x7fc3820ab410 fileno=[Errno 9] Bad fi)> failed with SSHException
Apr 11 08:33:17 heralding heralding[13986]: Traceback (most recent call last):
Apr 11 08:33:17 heralding heralding[13986]: File "/home/heralding/virtualenv/local/lib/python2.7/site-packages/gevent/greenlet.py", line 534, in run
Apr 11 08:33:17 heralding heralding[13986]: result = self._run(*self.args, **self.kwargs)
Apr 11 08:33:17 heralding heralding[13986]: File "/home/heralding/virtualenv/local/lib/python2.7/site-packages/heralding/reporting/base_logger.py", line 47, in _run
Apr 11 08:33:17 heralding heralding[13986]: self.handle_log_data(data)
Apr 11 08:33:17 heralding heralding[13986]: File "/home/heralding/virtualenv/local/lib/python2.7/site-packages/heralding/reporting/file_logger.py", line 50, in handle_log_data
Apr 11 08:33:17 heralding heralding[13986]: self.csvWriter.writerow(data)
Apr 11 08:33:17 heralding heralding[13986]: File "/usr/lib/python2.7/csv.py", line 152, in writerow
Apr 11 08:33:17 heralding heralding[13986]: return self.writer.writerow(self._dict_to_list(rowdict))
Apr 11 08:33:17 heralding heralding[13986]: UnicodeEncodeError: 'ascii' codec can't encode characters in position 9-12: ordinal not in range(128)
Apr 11 08:33:17 heralding heralding[13986]: <FileLogger at 0x7fc384788410> failed with UnicodeEncodeError

@johnnykv johnnykv added the bug label Apr 17, 2016

johnnykv added a commit that referenced this issue Apr 17, 2016

@johnnykv johnnykv closed this Mar 13, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment