From 39c17ef1de01beddff616dbd9f2caefa42875156 Mon Sep 17 00:00:00 2001 From: Tom Keffer Date: Fri, 12 Oct 2012 22:07:03 +0000 Subject: [PATCH] No longer logs an error when a socket exception is thrown while flushing the input buffer. --- bin/weewx/VantagePro.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/weewx/VantagePro.py b/bin/weewx/VantagePro.py index ed9acdca..e55f32d4 100644 --- a/bin/weewx/VantagePro.py +++ b/bin/weewx/VantagePro.py @@ -290,7 +290,6 @@ class EthernetWrapper(BaseWrapper): try: _recv = self.socket.recv(_N) except (socket.timeout, socket.error), ex: - syslog.syslog(syslog.LOG_ERR, "VantagePro: Socket error while reading %d bytes." % (chars,)) # Reraise as a weewx I/O error: raise weewx.WeeWxIOError(ex) _nread = len(_recv) @@ -317,7 +316,7 @@ class EthernetWrapper(BaseWrapper): class Vantage(weewx.abstractstation.AbstractStation): """Class that represents a connection to a Davis Vantage console. - The connection will be opened after initialization""" + The connection to the console will be open after initialization""" # Various codes used internally by the VP2: barometer_unit_dict = {0:'inHg', 1:'mmHg', 2:'hPa', 3:'mbar'}