Improve logging behaviour 

This pull request improves logging behaviour as suggested in SecureSocial pull request: https://github.com/jaliss/securesocial/pull/374