Adding some loggin output to track how redirects after login are handled on the staging server.