Skip to content

Commit

Permalink
fix deprecated logging.warn calls in reverse proxy examples
Browse files Browse the repository at this point in the history
  • Loading branch information
dtkav committed Dec 12, 2019
1 parent 26249b9 commit d0efe57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/openapi3/reverseproxy/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __init__(self, app, script_name=None, scheme=None, server=None):
self.server = server

def __call__(self, environ, start_response):
logging.warn(
logging.warning(
"this demo is not secure by default!! "
"You'll want to make sure these headers are coming from your proxy, "
"and not directly from users on the web!"
Expand Down
2 changes: 1 addition & 1 deletion examples/openapi3/reverseproxy_aiohttp/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def get_forwarded_path(self, headers):

@web.middleware
async def middleware(self, request, handler):
logging.warn(
logging.warning(
"this demo is not secure by default!! "
"You'll want to make sure these headers are coming from your proxy, "
"and not directly from users on the web!"
Expand Down

0 comments on commit d0efe57

Please sign in to comment.