Skip to content

Commit

Permalink
a few minor logging changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ptone committed Mar 1, 2011
1 parent 73626ef commit 768f33d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion la_facebook/access.py
Expand Up @@ -181,7 +181,7 @@ def check_token(self, unauth_token, parameters):
params["client_secret"] = self.secret
params["code"] = code
logger.debug("OAuthAccess.check_token: token access params: "\
"%s, sent to %s" % (params,self.access_token_url))
"%s, sent to %s" % (params, self.access_token_url))
raw_data = urllib.urlopen(
"%s?%s" % (
self.access_token_url, urllib.urlencode(params)
Expand Down
4 changes: 3 additions & 1 deletion la_facebook/views.py
Expand Up @@ -45,9 +45,11 @@ def facebook_callback(request, error_template_name="la_facebook/fb_error.html"):
auth_token = access.check_token(unauth_token, request.GET)
except MissingToken:
ctx.update({"error": "token_missing"})
logger.error('la_facebook.views.facebook_login: missing token')
logger.error('la_facebook.views.facebook_callback: missing token')
else:
if auth_token:
logger.debug('la_facebook.views.facebook_callback: token success '\
', sending to callback')
return access.callback(request, access, auth_token)
else:
# @@@ not nice for OAuth 2
Expand Down

0 comments on commit 768f33d

Please sign in to comment.