diff options
author | 2018-06-19 13:03:19 +0100 | |
---|---|---|
committer | 2018-06-19 13:03:19 +0100 | |
commit | c994adbab3d7409ac30504cd9e4e16484472d1f7 (patch) | |
tree | 9b0a8bfd59c2ec20c0e81b79e257c4d04bbae54d /pysite | |
parent | [Jams] Additional logging on teams page (diff) |
[Jams] Additional logging on teams page
Diffstat (limited to 'pysite')
-rw-r--r-- | pysite/views/staff/jams/teams/view.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pysite/views/staff/jams/teams/view.py b/pysite/views/staff/jams/teams/view.py index c68da63e..6b30f9a2 100644 --- a/pysite/views/staff/jams/teams/view.py +++ b/pysite/views/staff/jams/teams/view.py @@ -1,3 +1,5 @@ +import logging + from rethinkdb import ReqlNonExistenceError from werkzeug.exceptions import NotFound @@ -7,6 +9,7 @@ from pysite.decorators import require_roles from pysite.mixins import DBMixin REQUIRED_KEYS = ("title", "date_start", "date_end") +log = logging.getLogger(__name__) class StaffView(RouteView, DBMixin): @@ -75,6 +78,7 @@ class StaffView(RouteView, DBMixin): jam_data = self.db.run(query) except ReqlNonExistenceError: + log.exception("Failed RethinkDB query") raise NotFound() questions = {} |