aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/constants.py
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2018-03-13 00:22:33 +0100
committerGravatar Leon Sandøy <[email protected]>2018-03-13 00:22:33 +0100
commit5676b6495a9e07cf46a93e6939b88bda9eda44ba (patch)
tree81b4aac353a3307ff82fe81ae3be54bb42d69ee4 /pysite/constants.py
parentMinor bugfix to allow tag.delete to return success as False if the tag doesn'... (diff)
parentLogging fixes (diff)
Merge branch 'master' of github.com:discord-python/site
Diffstat (limited to 'pysite/constants.py')
-rw-r--r--pysite/constants.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pysite/constants.py b/pysite/constants.py
index 316d550f..d6ed489f 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") or None
+PAPERTRAIL_PORT = int(os.environ.get("PAPERTRAIL_PORT") or 0)