Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lowercase emails + more logging #7

Merged
merged 4 commits into from
Sep 29, 2023
Merged

Conversation

alexandrelaplante
Copy link

No description provided.

@alexandrelaplante alexandrelaplante changed the title Al/print-statements Lowercase emails + more logging Sep 29, 2023
@@ -167,6 +167,7 @@ def _create_new_user(username, email, firstname, lastname):
def acs(r, metadata_id):
metadata = SamlMetaData.objects.filter(pk=metadata_id).first()
if not metadata:
print("Denied because missing metadata")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we use loggers here instead?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the library doesn't have those as a dependency

Copy link

@ricardo-passthrough ricardo-passthrough Sep 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean, logging.getLogger(__name__) from python

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nevermind TIL logger is part of the basic library

Copy link

@jpmanthorp jpmanthorp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@alexandrelaplante alexandrelaplante merged commit f7f2dfe into master Sep 29, 2023
@alexandrelaplante alexandrelaplante deleted the al/print-statements branch September 29, 2023 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants