summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7eebf41)
raw | patch | inline | side by side (parent: 7eebf41)
author | Garret Heaton <powdahound@gmail.com> | |
Tue, 20 Jul 2010 01:56:31 +0000 (18:56 -0700) | ||
committer | Garret Heaton <powdahound@gmail.com> | |
Tue, 20 Jul 2010 01:56:31 +0000 (18:56 -0700) |
Was calling sys.stderror instead of sys.stderr.
contrib/collectd_unixsock.py | patch | blob | history |
index c482ac6185fee8a1988e65271d24b40397c659b7..ebe040d6a11846ab77fe446112668e29354f904f 100644 (file)
print "[socket] connected to %s" % self.path
return sock
except socket.error, (errno, errstr):
- sys.stderror.write("[error] Connecting to socket failed: [%d] %s"
- % (errno, errstr))
+ sys.stderr.write("[error] Connecting to socket failed: [%d] %s"
+ % (errno, errstr))
return None
def _readline(self):
buf.append(data)
return ''.join(buf)
except socket.error, (errno, errstr):
- sys.stderror.write("[error] Reading from socket failed: [%d] %s"
- % (errno, errstr))
+ sys.stderr.write("[error] Reading from socket failed: [%d] %s"
+ % (errno, errstr))
self._sock = self._connect()
return None
try:
self._sock.close()
except socket.error, (errno, errstr):
- sys.stderror.write("[error] Closing socket failed: [%d] %s"
- % (errno, errstr))
+ sys.stderr.write("[error] Closing socket failed: [%d] %s"
+ % (errno, errstr))
if __name__ == '__main__':