mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-18 04:08:04 -06:00
klippy: Replace deprecated logger.warn with logger.warning (#6385)
Replace deprecated logger.warn with logger.warning logger.warn will be removed in Python 3.13 Signed-off-by: Thijs Triemstra <info@collab.nl>
This commit is contained in:
parent
3f8f30d612
commit
4688c21c54
6 changed files with 19 additions and 16 deletions
|
@ -137,8 +137,8 @@ class SerialReader:
|
|||
bustype='socketcan')
|
||||
bus.send(set_id_msg)
|
||||
except (can.CanError, os.error) as e:
|
||||
logging.warn("%sUnable to open CAN port: %s",
|
||||
self.warn_prefix, e)
|
||||
logging.warning("%sUnable to open CAN port: %s",
|
||||
self.warn_prefix, e)
|
||||
self.reactor.pause(self.reactor.monotonic() + 5.)
|
||||
continue
|
||||
bus.close = bus.shutdown # XXX
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue