aboutsummaryrefslogtreecommitdiffstats
path: root/bot/__init__.py
diff options
context:
space:
mode:
authorGravatar Vincent Gross <[email protected]>2019-07-09 17:45:40 -0400
committerGravatar GitHub <[email protected]>2019-07-09 17:45:40 -0400
commit9353a79753a2d5f9fb98fec21b2bd2e8e2248167 (patch)
tree566d5876b7e9ae508b7af696ea18bc73b595e22c /bot/__init__.py
parentRelock Pipfile. (diff)
parentChanging id of terning4 to the correct one (diff)
Merge branch 'master' into dpy-1.2
Diffstat (limited to 'bot/__init__.py')
-rw-r--r--bot/__init__.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/bot/__init__.py b/bot/__init__.py
index 7c564178..9e0290a7 100644
--- a/bot/__init__.py
+++ b/bot/__init__.py
@@ -20,7 +20,6 @@ def monkeypatch_trace(self, msg, *args, **kwargs):
To pass exception information, use the keyword argument exc_info with a true value, e.g.
logger.trace("Houston, we have an %s", "interesting problem", exc_info=1)
"""
-
if self.isEnabledFor(logging.TRACE):
self._log(logging.TRACE, msg, args, **kwargs)
@@ -31,7 +30,7 @@ logging.Logger.trace = monkeypatch_trace
start_time = arrow.utcnow()
# Set up file logging
-log_dir = Path("bot", "log")
+log_dir = Path("bot/log")
log_file = log_dir / "hackbot.log"
os.makedirs(log_dir, exist_ok=True)