diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2018-09-03 18:32:10 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2018-09-03 18:34:10 -0400 |
commit | ef6068dc428ed86442407cc59d1724bb242d5ba4 (patch) | |
tree | 22444b0dbc54c54936fe64070885d27d561baf6b /klippy/klippy.py | |
parent | 5801e6f4d0d8c03b162d8547df38f58b9a5d0b6c (diff) | |
download | kutter-ef6068dc428ed86442407cc59d1724bb242d5ba4.tar.gz kutter-ef6068dc428ed86442407cc59d1724bb242d5ba4.tar.xz kutter-ef6068dc428ed86442407cc59d1724bb242d5ba4.zip |
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 <kevin@koconnor.net>
Diffstat (limited to 'klippy/klippy.py')
-rw-r--r-- | klippy/klippy.py | 5 |
1 files changed, 3 insertions, 2 deletions
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): |