Log exception on error while reading from serial

(cherry picked from commit ac3409a)
This commit is contained in:
Gina Häußge committed 2015-08-14 08:55:29 +02:00
1 parent 273bb45741
commit ba1f8c58b4
1 file changed
+2 -1
+2 -1
View File
@@ -1322,7 +1322,8 @@ class MachineCom(object):
try:
ret = self._serial.readline()
except:
self._log("Unexpected error while reading serial port: %s" % (get_exception_string()))
self._logger.exception("Unexpected error while reading from serial port")
self._log("Unexpected error while reading serial port, please consult octoprint.log for details: %s" % (get_exception_string()))
self._errorValue = get_exception_string()
self.close(True)
return None