mirror of
https://gitlab.com/libvirt/libvirt-python.git
synced 2025-08-04 12:21:57 +03:00
examples: replace logging.warn 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 <jvanderwaa@redhat.com>
This commit is contained in:
committed by
Daniel P. Berrangé
parent
c647a8ba2a
commit
205cdbbee7
@ -19,7 +19,7 @@ def error_handler(unused, error) -> None:
|
||||
# The console stream errors on VM shutdown; we don't care
|
||||
if error[0] == libvirt.VIR_ERR_RPC and error[1] == libvirt.VIR_FROM_STREAMS:
|
||||
return
|
||||
logging.warn(error)
|
||||
logging.warning(error)
|
||||
|
||||
|
||||
class Console(object):
|
||||
|
Reference in New Issue
Block a user