Skip to content

Commit

Permalink
Change to debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
jawadqur committed Jan 3, 2025
1 parent 2c33d45 commit 7525128
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wts/auth_plugins/k8s.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def get_username_from_ip(ip):
pod.metadata.annotations
and POD_USERNAME_ANNOTATION in pod.metadata.annotations
):
flask.current_app.logger.info(
flask.current_app.logger.debug(
"Found username {} for IP {}".format(
pod.metadata.annotations[POD_USERNAME_ANNOTATION], ip
)
Expand All @@ -35,15 +35,15 @@ def get_username_from_ip(ip):
pod.metadata.annotations
and JUPYTER_POD_ANNOTATION in pod.metadata.annotations
):
flask.current_app.logger.info(
flask.current_app.logger.debug(
"Found username {} for IP {}".format(
pod.metadata.annotations[JUPYTER_POD_ANNOTATION], ip
)
)
return pod.metadata.annotations[JUPYTER_POD_ANNOTATION]

# No matching pod found
flask.current_app.logger.info("No username found for IP {}".format(ip))
flask.current_app.logger.debug("No username found for IP {}".format(ip))
return None


Expand Down

0 comments on commit 7525128

Please sign in to comment.