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:
Thijs Triemstra 2023-11-17 04:06:13 +01:00 committed by GitHub
parent 3f8f30d612
commit 4688c21c54
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 19 additions and 16 deletions

View file

@ -62,7 +62,7 @@ class SensorBase:
last_read_time = self.mcu.clock_to_print_time(last_read_clock)
self._callback(last_read_time, temp)
def report_fault(self, msg):
logging.warn(msg)
logging.warning(msg)
######################################################################