From e7fa8f0baf2da91b78b5a683ada01b65069a1943 Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Sat, 10 Mar 2018 19:49:35 +0000 Subject: Logging fixes --- bot/__init__.py | 2 +- bot/constants.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bot/__init__.py b/bot/__init__.py index f17404572..c8220a6b3 100644 --- a/bot/__init__.py +++ b/bot/__init__.py @@ -18,7 +18,7 @@ if PAPERTRAIL_ADDRESS: logging_handlers.append(StreamHandler(stream=sys.stderr)) logging.basicConfig( - format="%(asctime)s pd.beardfist.com Bot: | %(name)15s | %(levelname)8s | %(message)s", + format="%(asctime)s pd.beardfist.com Bot: | %(name)30s | %(levelname)8s | %(message)s", datefmt="%b %d %H:%M:%S", level=logging.INFO, handlers=logging_handlers diff --git a/bot/constants.py b/bot/constants.py index 9878eb716..b6e89a31a 100644 --- a/bot/constants.py +++ b/bot/constants.py @@ -50,5 +50,5 @@ RED_CHEVRON = "<:redchevron:418112778184818698>" WHITE_CHEVRON = "<:whitechevron:418110396973711363>" # 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