From e6539f9ee28062e773719a679d33a59511c2526a Mon Sep 17 00:00:00 2001 From: Mike Fiedler Date: Mon, 27 Jan 2014 12:31:26 -0500 Subject: [PATCH] remove unicode casting for syslog line, fixes #804 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. --- checks/collector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checks/collector.py b/checks/collector.py index ae11aa152b..f720d0b6ab 100644 --- a/checks/collector.py +++ b/checks/collector.py @@ -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