login: Log redirection target on debug level

We have some magic when computing the URL, it is good if we can see in the debug
log this detail.
This commit is contained in:
Johannes Bornhold 2016-06-16 10:43:17 +02:00
parent 11e283bac8
commit c19b05b352

View file

@ -154,6 +154,7 @@ class LoginView(object):
self.session,
username=form_result['username'],
remember=form_result['remember'])
log.debug('Redirecting to "%s" after login.', came_from)
raise HTTPFound(came_from, headers=headers)
except formencode.Invalid as errors:
defaults = errors.value