aboutsummaryrefslogtreecommitdiffstats
path: root/klippy
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2020-09-17 02:16:29 -0400
committerKevin O'Connor <kevin@koconnor.net>2020-09-17 21:46:00 -0400
commit6bba285f8e1485f9f3b9dc7d4e07708d658698e3 (patch)
tree618ac9319ada4ffe57f7bc35a6fbd8ef2cb10b2f /klippy
parent4c14063404a59f3e0ae466ff68aa0692ac1557d3 (diff)
downloadkutter-6bba285f8e1485f9f3b9dc7d4e07708d658698e3.tar.gz
kutter-6bba285f8e1485f9f3b9dc7d4e07708d658698e3.tar.xz
kutter-6bba285f8e1485f9f3b9dc7d4e07708d658698e3.zip
gcode: Don't log debugging output for unknown commands if command is blank
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy')
-rw-r--r--klippy/gcode.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/klippy/gcode.py b/klippy/gcode.py
index e15301f9..f34b9ea2 100644
--- a/klippy/gcode.py
+++ b/klippy/gcode.py
@@ -251,7 +251,9 @@ class GCodeDispatch:
raise gcmd.error(self.printer.get_state_message()[0])
return
if not cmd:
- logging.debug(gcmd.get_commandline())
+ cmdline = gcmd.get_commandline()
+ if cmdline:
+ logging.debug(cmdline)
return
if cmd.startswith("M117 "):
# Handle M117 gcode with numeric and special characters