From 9f56fd79b081c19876ccdabdf217e9f36260c4a4 Mon Sep 17 00:00:00 2001 From: Vaibhav Khaitan Date: Mon, 8 Oct 2018 01:55:05 -0400 Subject: [PATCH] Updated logging.warn to logging.warning (#234) --- flask_cors/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flask_cors/core.py b/flask_cors/core.py index ef66aff..439879a 100644 --- a/flask_cors/core.py +++ b/flask_cors/core.py @@ -354,7 +354,7 @@ def serialize_options(opts): for key in opts.keys(): if key not in DEFAULT_OPTIONS: - LOG.warn("Unknown option passed to Flask-CORS: %s", key) + LOG.warning("Unknown option passed to Flask-CORS: %s", key) # Ensure origins is a list of allowed origins with at least one entry. options['origins'] = sanitize_regex_param(options.get('origins'))