From 7a386cff7d83dbe8b26801b9f8cab4b075aa5acd Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 14 Apr 2017 10:06:11 -0400 Subject: [PATCH] mcu: Change "Synchronizing mcu clock" logging to debug Always log the last synchronized clock during a shutdown event, and use debug level for normal reports. Signed-off-by: Kevin O'Connor --- klippy/mcu.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/klippy/mcu.py b/klippy/mcu.py index efb5f7de..c3fe707b 100644 --- a/klippy/mcu.py +++ b/klippy/mcu.py @@ -420,6 +420,9 @@ class MCU: self.is_shutdown = True self._shutdown_msg = params['#msg'] logging.info("%s: %s" % (params['#name'], self._shutdown_msg)) + pst = self._print_start_time + logging.info("Clock last synchronized at %.6f (%d)" % ( + pst, int(pst * self._mcu_freq))) self.serial.dump_debug() self._printer.note_shutdown(self._shutdown_msg) # Connection phase @@ -612,7 +615,7 @@ class MCU: # Clock syncing def set_print_start_time(self, eventtime): clock = self.serial.get_clock(eventtime) - logging.info("Synchronizing mcu clock at %.6f to %d" % ( + logging.debug("Synchronizing mcu clock at %.6f to %d" % ( eventtime, clock)) est_mcu_time = clock / self._mcu_freq self._print_start_time = est_mcu_time