diff options
author | 2018-03-10 19:49:35 +0000 | |
---|---|---|
committer | 2018-03-10 19:49:35 +0000 | |
commit | e7fa8f0baf2da91b78b5a683ada01b65069a1943 (patch) | |
tree | 0f0c5d828aec021bbf2edb0d623973160bdc64cc | |
parent | Logging with papertrail (diff) |
Logging fixes
-rw-r--r-- | bot/__init__.py | 2 | ||||
-rw-r--r-- | 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) |