Skip to content

Commit 965c90d

Browse files
v1.5 - Python script appends current log
1 parent f0fbf9b commit 965c90d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lidarr/python/ARLChecker.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from dataclasses import dataclass
44
from requests import Session
55
from argparse import ArgumentParser
6-
from sys import argv
6+
from sys import argv, stdout
77
from colorama import Fore, init
88
from telegram import Update
99
from telegram.ext import ApplicationBuilder, ContextTypes, CommandHandler
@@ -26,8 +26,10 @@
2626
format=f'%(asctime)s :: ARLChecker :: {VERSION} :: %(levelname)s :: %(message)s',
2727
datefmt='%Y-%m-%d %H:%M:%S',
2828
level=logging.INFO,
29-
filename=latest_file,
30-
filemode='a'
29+
handlers=[
30+
logging.StreamHandler(stdout),
31+
logging.FileHandler(latest_file, mode="a")
32+
]
3133
)
3234
logger = logging.getLogger(__name__)
3335

0 commit comments

Comments
 (0)