From ef6068dc428ed86442407cc59d1724bb242d5ba4 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Mon, 3 Sep 2018 18:32:10 -0400 Subject: mcu: Log MCU information before configuring Log the details of the MCU prior to attempting to configure the MCU. This way, the log contains the MCU information even if a configuration error occurs. Signed-off-by: Kevin O'Connor --- klippy/klippy.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'klippy/klippy.py') diff --git a/klippy/klippy.py b/klippy/klippy.py index 37c28ff3..f0935587 100644 --- a/klippy/klippy.py +++ b/klippy/klippy.py @@ -171,8 +171,9 @@ class Printer: if module in self.objects: return [(module, self.objects[module])] + objs return objs - def set_rollover_info(self, name, info): - logging.info(info) + def set_rollover_info(self, name, info, log=True): + if log: + logging.info(info) if self.bglogger is not None: self.bglogger.set_rollover_info(name, info) def try_load_module(self, config, section): -- cgit v1.2.3-70-g09d2