From 4075de4b1ee11d0085081316488e6d9dd5f907b4 Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Sat, 10 Mar 2018 19:13:21 +0000 Subject: Logging with Papertrail --- pysite/constants.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pysite/constants.py') diff --git a/pysite/constants.py b/pysite/constants.py index 316d550f..d9b87cb6 100644 --- a/pysite/constants.py +++ b/pysite/constants.py @@ -1,6 +1,7 @@ # coding=utf-8 from enum import Enum, IntEnum +import os class ErrorCodes(IntEnum): @@ -43,3 +44,7 @@ ERROR_DESCRIPTIONS = { 418: "I'm a teapot, I can't make coffee. (._.)", 429: "Please don't send us that many requests." } + +# PaperTrail logging +PAPERTRAIL_ADDRESS = os.environ.get("PAPERTRAIL_ADDRESS") +PAPERTRAIL_PORT = int(os.environ.get("PAPERTRAIL_PORT", 0)) -- cgit v1.2.3