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>
This commit is contained in:
Kevin O'Connor
2018-09-03 18:32:10 -04:00
parent 5801e6f4d0
commit ef6068dc42
2 changed files with 20 additions and 15 deletions

View File

@@ -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):