Skip to content

Commit b1289bd

Browse files
committed
TASK: Move logging to "logs" directory
1 parent 4dd0259 commit b1289bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
BOT_TOKEN = "<your_bot_token>"
2525

2626
logfile_dir_path = os.path.dirname(os.path.abspath(__file__))
27-
logfile_abs_path = os.path.join(logfile_dir_path, "bot.log")
27+
logfile_abs_path = os.path.join(logfile_dir_path, "logs", "bot.log")
2828
logfile_handler = logging.FileHandler(logfile_abs_path, 'a', 'utf-8')
2929

3030
logger = logging.getLogger(__name__)

0 commit comments

Comments
 (0)