Skip to content

Commit

Permalink
refactor: follow existing log format
Browse files Browse the repository at this point in the history
  • Loading branch information
nickumia-reisys committed Jan 12, 2023
1 parent 0072d40 commit 1203f68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ckanext/saml2auth/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ def logout(self):
response.set_cookie('auth_tkt', domain=domain, expires=0)

if g.userobj:
log.info("Logout successful %s<%s>" % (g.userobj.name, g.userobj.email))
log.info(u'User {0}<{1}> logged out successfully'.format(g.userobj.name, g.userobj.email))
else:
log.info("No user was logged in!")
log.info(u'No user was logged in!')

return response

Expand Down
2 changes: 1 addition & 1 deletion ckanext/saml2auth/views/saml2auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def _log_user_into_ckan(resp):
user_id = g.userobj.name
set_repoze_user(user_id, resp)

log.info("Login successful %s<%s>" % (g.userobj.name, g.userobj.email))
log.info(u'User {0}<{1}> logged in successfully'.format(g.userobj.name, g.userobj.email))


def saml2login():
Expand Down

0 comments on commit 1203f68

Please sign in to comment.