❇️ Configurable terminal log size in comm layer

See https://discourse.octoprint.org/t/logging-terminal-information-on-failed-print/7047/3?u=foosel
This commit is contained in:
Gina Häußge committed 2019-01-28 12:03:16 +01:00
1 parent 68410cb3d7
commit f3f1061f9d
2 files changed
+3 -1

No files matched your search

+1
View File
@@ -117,6 +117,7 @@ default_settings = {
"helloCommand": "M110 N0",
"disconnectOnErrors": True,
"ignoreErrorsFromFirmware": False,
"terminalLogSize": 20,
"logResends": True,
"supportResendsWithoutOk": "detect",
"logPositionOnPause": True,
+2 -1
View File
@@ -467,7 +467,8 @@ class MachineCom(object):
self._resendActive = False
self._terminal_log = deque([], 20)
terminal_log_size = settings().getInt(["serial", "terminalLogSize"])
self._terminal_log = deque([], min(20, terminal_log_size))
self._disconnect_on_errors = settings().getBoolean(["serial", "disconnectOnErrors"])
self._ignore_errors = settings().getBoolean(["serial", "ignoreErrorsFromFirmware"])