Don't use deprecated method logger.warn

Method Logger.warn was deprecated [1], use warning instead.

[1]https://docs.python.org/3/library/logging.html#logging.Logger.warning

Change-Id: I96ef1f4b619f531c5f24243857192cf24fdf65c3
This commit is contained in:
ChangBo Guo(gcb) 2016-10-17 12:59:09 +08:00 committed by ChangBo Guo(gcb)
parent 17560e4042
commit 7d1951d79b

View File

@ -193,8 +193,8 @@ class _ClientChannel(comm.ClientChannel):
# (LOG, level, message)
LOG.log(msg[1], msg[2])
else:
LOG.warn(_LW('Ignoring unexpected OOB message from privileged '
'process: %r'), msg)
LOG.warning(_LW('Ignoring unexpected OOB message from privileged '
'process: %r'), msg)
def fdopen(fd, *args, **kwargs):