We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bee428 commit 430a44dCopy full SHA for 430a44d
logger/log.py
@@ -1,12 +1,10 @@
1
import json
2
import logging
3
from functools import wraps
4
-from settings import BASE_DIR
+from settings import LOG_FILE
5
6
logger = logging.getLogger(__name__)
7
8
-LOG_FILE = BASE_DIR.joinpath('data/app.json')
9
-
10
11
async def append_log(data):
12
with open(LOG_FILE, 'a') as file:
settings.py
@@ -21,3 +21,4 @@
21
PAYMENT_CONFIRMATION_TEMPLATE_ID = config("WELCOME_MESSAGE_TEMPLATE_ID")
22
23
TEST_DATA_DIR = BASE_DIR.joinpath("tests/data")
24
+LOG_FILE = BASE_DIR.joinpath('data/app.json')
0 commit comments