Replace LOG.warn with LOG.warning
logging.warn is deprecated in Python 3 [1].
[1] https://docs.python.org/3/library/logging.html#logging.warning
Change-Id: Iecf3ba100fb896189c8da0fc69da3f4b86345fb2
yushangbin
6 years ago
608 | 608 | except (barbican_exceptions.HTTPAuthError, |
609 | 609 | barbican_exceptions.HTTPClientError, |
610 | 610 | barbican_exceptions.HTTPServerError) as e: |
611 | LOG.warn(_("Error occurred while retrieving object metadata," | |
612 | " not adding it to the list: %s"), e) | |
611 | LOG.warning(_("Error occurred while retrieving object " | |
612 | "metadata, not adding it to the list: %s"), e) | |
613 | 613 | |
614 | 614 | return objects |