Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Commit

Permalink
BAU: Remove unnecessary log
Browse files Browse the repository at this point in the history
  • Loading branch information
tferns committed Oct 18, 2023
1 parent 29d5761 commit 037e866
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
4 changes: 0 additions & 4 deletions models/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,6 @@ def update_account(
if config.FLASK_ENV == "development" and not roles:
account = get_account_data(email)
roles = account.get("roles")
if not roles:
current_app.logger.error(
f"account id: {id} has not been assigned any roles"
)
params = {
"email_address": email,
"azure_ad_subject_id": azure_ad_subject_id,
Expand Down
1 change: 0 additions & 1 deletion tests/test_sso.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ def test_sso_get_token_logs_error_for_roleless_users(
error_response = flask_test_client.get(endpoint)

assert error_response.status_code == 302
assert "account id: usersso has not been assigned any roles" in caplog.text


def test_sso_get_token_sets_expected_fsd_user_token_cookie_claims(
Expand Down

0 comments on commit 037e866

Please sign in to comment.