Log exception on error while reading from serial
This commit is contained in:
parent
91539624df
commit
ac3409a223
1 changed files with 2 additions and 1 deletions
|
|
@ -1373,7 +1373,8 @@ class MachineCom(object):
|
||||||
try:
|
try:
|
||||||
ret = self._serial.readline()
|
ret = self._serial.readline()
|
||||||
except:
|
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._errorValue = get_exception_string()
|
||||||
self.close(is_error=True)
|
self.close(is_error=True)
|
||||||
return None
|
return None
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue