From 177a5261607febd4491f055cfc511551594bd75c Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Sat, 10 Mar 2018 19:49:28 +0000 Subject: Logging fixes --- pysite/constants.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pysite/constants.py') diff --git a/pysite/constants.py b/pysite/constants.py index d9b87cb6..d6ed489f 100644 --- a/pysite/constants.py +++ b/pysite/constants.py @@ -46,5 +46,5 @@ ERROR_DESCRIPTIONS = { } # PaperTrail logging -PAPERTRAIL_ADDRESS = os.environ.get("PAPERTRAIL_ADDRESS") -PAPERTRAIL_PORT = int(os.environ.get("PAPERTRAIL_PORT", 0)) +PAPERTRAIL_ADDRESS = os.environ.get("PAPERTRAIL_ADDRESS") or None +PAPERTRAIL_PORT = int(os.environ.get("PAPERTRAIL_PORT") or 0) -- cgit v1.2.3