Skip to content

Commit 93c15be

Browse files
fix: resolve logger warnings (#363)
Signed-off-by: Emmanuel Ferdman <[email protected]>
1 parent 6396b2d commit 93c15be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/auth-app/auth.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def delete_user_credentials(self, user_name: str) -> None:
7979

8080

8181
def get_user_credentials(user_name: str) -> Credentials:
82-
"""Gets stored crednetials for a user, if it exists."""
82+
"""Gets stored credentials for a user, if it exists."""
8383
return Store().get_user_credentials(user_name)
8484

8585

@@ -138,7 +138,7 @@ def on_oauth2_callback() -> flask.Response:
138138
saved_state = flask.session["state"]
139139
state = flask.request.args["state"]
140140
if state != saved_state:
141-
logging.warn("Mismatched state in oauth response")
141+
logging.warning("Mismatched state in oauth response")
142142
return flask.abort(403)
143143

144144
redirect_uri = flask.url_for("auth.on_oauth2_callback", _external=True)

0 commit comments

Comments
 (0)