reload(tools.smart_start_stream_time)
logger = logging.getLogger(__name__)
+logger.setLevel(logging.DEBUG)
+
+formatter = logging.Formatter("[%(levelname)s] %(asctime)s: %(name)s; %(message)s")
+
+file_handler = logging.FileHandler('/var/log/aptbot/logs.log')
+file_handler.setFormatter(formatter)
+
+logger.addHandler(file_handler)
PATH = os.path.dirname(os.path.realpath(__file__))
logger.debug(f"analyze_auto_message PATH set to: {PATH}")
from aptbot.bot import Bot, Message, Commands
logger = logging.getLogger(__name__)
+logger.setLevel(logging.DEBUG)
+
+formatter = logging.Formatter("[%(levelname)s] %(asctime)s: %(name)s; %(message)s")
+
+file_handler = logging.FileHandler('/var/log/aptbot/logs.log')
+file_handler.setFormatter(formatter)
+
+logger.addHandler(file_handler)
PATH = os.path.dirname(os.path.realpath(__file__))
logger.debug(f"PATH set to: {PATH}")
import logging
logger = logging.getLogger(__name__)
+logger.setLevel(logging.DEBUG)
+
+formatter = logging.Formatter("[%(levelname)s] %(asctime)s: %(name)s; %(message)s")
+
+file_handler = logging.FileHandler('/var/log/aptbot/logs.log')
+file_handler.setFormatter(formatter)
+
+logger.addHandler(file_handler)
PATH = os.path.dirname(os.path.realpath(__file__))
logger.debug(f"PATH set to: {PATH}")
from typing import Optional
logger = logging.getLogger(__name__)
+logger.setLevel(logging.DEBUG)
+
+formatter = logging.Formatter("[%(levelname)s] %(asctime)s: %(name)s; %(message)s")
+
+file_handler = logging.FileHandler('/var/log/aptbot/logs.log')
+file_handler.setFormatter(formatter)
+
+logger.addHandler(file_handler)
STREAMER_PATH = os.path.abspath(os.path.join(__file__, "../.."))
logger.debug(f"STREAMER_PATH set to: {STREAMER_PATH}")