klippy: Replace logging.warn usage with logging.warning

logging.warn is an alias to logging.warning since Python 3.3 and will be
removed in Python 3.13.

Signed-off-by: Jelle van der Waa <jelle@vdwaa.nl>
This commit is contained in:
Jelle van der Waa
2024-04-28 12:59:23 +02:00
committed by KevinOConnor
parent af149b4781
commit 7e8c7f46a9
2 changed files with 6 additions and 5 deletions

View File

@@ -316,7 +316,7 @@ class PrinterConfig:
self.printer.set_rollover_info("config", "\n".join(lines))
# Status reporting
def runtime_warning(self, msg):
logging.warn(msg)
logging.warning(msg)
res = {'type': 'runtime_warning', 'message': msg}
self.runtime_warnings.append(res)
self.status_warnings = self.runtime_warnings + self.deprecate_warnings