gcode: Change respond_info() to log by default

It makes sense to log most respond_info() content, so do that by
default.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2019-03-04 13:04:18 -05:00
parent d62a41b930
commit 1731fbbca4
9 changed files with 17 additions and 29 deletions

View File

@@ -118,7 +118,6 @@ class BLTouchEndstopWrapper:
if retry >= 2:
raise
msg = "Failed to verify BLTouch probe is raised; retrying."
logging.warning(msg)
self.gcode.respond_info(msg)
self.next_cmd_time += RETRY_RESET_TIME
continue
@@ -172,9 +171,7 @@ class BLTouchEndstopWrapper:
self.gcode.respond_info("BLTouch commands: %s" % (
", ".join(sorted([c for c in Commands if c is not None]))))
return
msg = "Sending BLTOUCH_DEBUG COMMAND=%s" % (cmd,)
self.gcode.respond_info(msg)
logging.info(msg)
self.gcode.respond_info("Sending BLTOUCH_DEBUG COMMAND=%s" % (cmd,))
self.sync_print_time()
self.send_cmd(cmd, duration=self.pin_move_time)
self.send_cmd(None)