Skip to content

Commit

Permalink
remove unicode casting for syslog line, fixes #804
Browse files Browse the repository at this point in the history
Causes a syslog emergency broadcast message to be displayed in certain
circumstances, like when using Python 2.6.5 on CentOS 5.x.

Since hostnames in unicode aren't valid, and we don't currently support
unicode host tags, this should be safe to remove.
  • Loading branch information
miketheman committed Jan 27, 2014
1 parent 31dc88f commit e6539f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checks/collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ def _build_payload(self, start_event=True):

# Log the metadata on the first run
if self._is_first_run():
log.info(u"Hostnames: %s, tags: %s" % (repr(self.metadata_cache), payload['host-tags']))
log.info("Hostnames: %s, tags: %s" % (repr(self.metadata_cache), payload['host-tags']))

return payload

Expand Down

0 comments on commit e6539f9

Please sign in to comment.