Added logging to OAuth.