diff --git a/robot.py b/robot.py index dc8fe38..3dadd9d 100755 --- a/robot.py +++ b/robot.py @@ -12,14 +12,15 @@ import youtube_dl from telegram import MessageEntity from telegram.ext import Updater, CommandHandler, MessageHandler, Filters -logging.basicConfig(level=logging.INFO, - format='%(asctime)s - %(name)s - %(levelname)s - %(message)s') -logger = logging.getLogger("kunsax") - DIR = os.path.dirname(os.path.realpath(__file__)) TMP_DIR = '/tmp' OUT_DIR = DIR + '/out' +logging.basicConfig(filename=OUT_DIR + '/delojza.log', + level=logging.INFO, + format='%(asctime)s - %(name)s - %(levelname)s - %(message)s') +logger = logging.getLogger("kunsax") + def ytdl_has(url): ies = youtube_dl.extractor.gen_extractors()