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

Use the default formatting for the user object in logging, simpler is… #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

whyscream
Copy link

… better

When playing around with this plugin in a pristine Plone 4.3 install, I noticed that the username property does not exist for portal members. The missing property results in a ValueError which makes the plugin skip the second auth step despite having it enabled.

This change still logs the username, but in a more fault tolerant way.

@ale-rt
Copy link
Member

ale-rt commented Sep 27, 2019

I would suggest:

logger.debug("Found user: %r", user)

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.

2 participants