Skip to content

Commit

Permalink
Merge pull request #371 from DNO-inc/improve_logging
Browse files Browse the repository at this point in the history
detail auth process logs
  • Loading branch information
m-o-d-e-r authored Jul 4, 2024
2 parents a79d981 + dfc7390 commit 8458f58
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion burrito/plugins/users/auth_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def execute(*args, **kwargs):
).json()

if response["status"] != "OK":
get_logger().info(
get_logger().error(
f"""
Failed to access user info:
* status: {response["status"]}
Expand All @@ -39,6 +39,8 @@ def execute(*args, **kwargs):
if response["result"].get("info2"):
is_student = False

get_logger().info(response)

return {
"user_id": (
int(response["result"]["info1"][-1]["ID_NUM"])
Expand Down

0 comments on commit 8458f58

Please sign in to comment.