Skip to content

Commit 430a44d

Browse files
surajitsurajit
authored andcommitted
add on event start up
1 parent 8bee428 commit 430a44d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

logger/log.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
import json
22
import logging
33
from functools import wraps
4-
from settings import BASE_DIR
4+
from settings import LOG_FILE
55

66
logger = logging.getLogger(__name__)
77

8-
LOG_FILE = BASE_DIR.joinpath('data/app.json')
9-
108

119
async def append_log(data):
1210
with open(LOG_FILE, 'a') as file:

settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@
2121
PAYMENT_CONFIRMATION_TEMPLATE_ID = config("WELCOME_MESSAGE_TEMPLATE_ID")
2222

2323
TEST_DATA_DIR = BASE_DIR.joinpath("tests/data")
24+
LOG_FILE = BASE_DIR.joinpath('data/app.json')

0 commit comments

Comments
 (0)