From 8d5a9143bb550966c0b43ee4624c49bfaaa55a8c Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 27 Sep 2017 11:43:14 -0400 Subject: klippy: Avoid using '%' syntax when calling logging module The logging module can build strings directly from printf syntax - no need to build the string first. Signed-off-by: Kevin O'Connor --- klippy/toolhead.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'klippy/toolhead.py') diff --git a/klippy/toolhead.py b/klippy/toolhead.py index 7a1b3e52..33814674 100644 --- a/klippy/toolhead.py +++ b/klippy/toolhead.py @@ -339,7 +339,7 @@ class ToolHead: self.extruder.motor_off(last_move_time) self.dwell(STALL_TIME) self.need_motor_off = False - logging.debug('; Max time of %f' % (last_move_time,)) + logging.debug('; Max time of %f', last_move_time) def wait_moves(self): self._flush_lookahead() if self.mcu.is_fileoutput(): -- cgit v1.2.3-70-g09d2