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

@ -1457,7 +1457,8 @@ class MenuManager:
elif action == 'exit':
self.exit()
elif action == 'respond':
self.gcode.respond_info("{}".format(' '.join(map(str, args))))
self.gcode.respond_info("{}".format(' '.join(map(str, args))),
log=False)
elif action == 'event' and len(args) > 0:
if len(str(args[0])) > 0:
self.printer.send_event(
@ -1530,11 +1531,9 @@ class MenuManager:
key1, key2,
self.parameters[key1].get(key2)
)
logging.info(msg)
self.gcode.respond_info(msg)
else:
msg = "{0} = {1}".format(key1, self.parameters.get(key1))
logging.info(msg)
self.gcode.respond_info(msg)
# buttons & encoder callbacks