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:
committed by
KevinOConnor
parent
af149b4781
commit
7e8c7f46a9
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user