mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-24 07:04:01 -06:00
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:
parent
d62a41b930
commit
1731fbbca4
9 changed files with 17 additions and 29 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue