aboutsummaryrefslogtreecommitdiff
path: root/app/handlers/base.py
diff options
context:
space:
mode:
authorMilo Casagrande <milo.casagrande@linaro.org>2014-04-04 20:06:16 +0200
committerMilo Casagrande <milo.casagrande@linaro.org>2014-04-04 20:06:16 +0200
commitd65ffc78b8eb19f7fb116f876d9b6243801f93b4 (patch)
tree9cf6388ee5a7ed0c97176dd873902e3b77e70a61 /app/handlers/base.py
parenta8ccbeef91d1d53ee9398b3a7604dd8064f7545d (diff)
Add initial logging facility.
Diffstat (limited to 'app/handlers/base.py')
-rw-r--r--app/handlers/base.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/handlers/base.py b/app/handlers/base.py
index 7deb48f..9d4e23a 100644
--- a/app/handlers/base.py
+++ b/app/handlers/base.py
@@ -31,6 +31,7 @@ from utils.db import (
find,
find_one,
)
+from utils.log import get_log
from utils.validator import is_valid_json
# Default and maximum limit for how many results to get back from the db.
@@ -65,6 +66,10 @@ class BaseHandler(RequestHandler):
"""The list of accepted keys to validate a JSON object."""
return ()
+ @property
+ def log(self):
+ return get_log()
+
def _valid_keys(self, method):
"""The accepted keys for the valid sent content type.