Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
ErrorController: Stop logging the useless exception when c.user unset
Browse files Browse the repository at this point in the history
The exception isn't a trace from the current point, but from the last
handled exception. This is not useful and is spamming up the logs.
  • Loading branch information
bsimpson63 committed Apr 28, 2016
1 parent 0cfeb95 commit 2d839da
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion r2/r2/controllers/error.py
Expand Up @@ -217,7 +217,6 @@ def GET_document(self):
# somehow requests are getting here with c.user unset
c.user_is_loggedin = False
c.user = UnloggedUser(browser_langs=None)
g.log.exception("ErrorController.GET_document unset c.user")

if srname:
c.site = Subreddit._by_name(srname)
Expand Down

0 comments on commit 2d839da

Please sign in to comment.