Relpace deprecated logger.warn() with logger.warning()

This commit is contained in:
cumul0529 2020-02-24 01:46:41 +09:00
parent 0b21e716ca
commit c3cfd412c9

View file

@ -424,8 +424,8 @@ def _parse_ssl_options(ssl_options):
except IOError:
logger.warning("Missing NGINX TLS options file: %s", ssl_options)
except UnicodeDecodeError:
logger.warn("Could not read file: %s due to invalid character. "
"Only UTF-8 encoding is supported.", ssl_options)
logger.warning("Could not read file: %s due to invalid character. "
"Only UTF-8 encoding is supported.", ssl_options)
except pyparsing.ParseBaseException as err:
logger.debug("Could not parse file: %s due to %s", ssl_options, err)
return []