This commit is contained in:
yasirarism 2023-07-03 21:15:42 +07:00 committed by GitHub
parent 93a49b8b7e
commit fa409dc29e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
import logging
from logging import INFO, StreamHandler, basicConfig, getLogger, handlers
import os
import subprocess
import time
@ -7,17 +7,17 @@ import dotenv
import requests
from git import Repo
logging.basicConfig(
level=logging.INFO,
basicConfig(
level=INFO,
format="[%(asctime)s - %(levelname)s] - %(name)s.%(funcName)s - %(message)s",
datefmt="%d-%b-%y %H:%M:%S",
handlers=[
logging.handlers.RotatingFileHandler("MissKatyLogs.txt", mode="w+", maxBytes=1000000),
logging.StreamHandler(),
handlers.RotatingFileHandler("MissKatyLogs.txt", mode="w+", maxBytes=1000000),
StreamHandler(),
],
)
LOGGER = logging.getLogger(__name__)
LOGGER = getLogger(__name__)
ENV_URL = os.environ.get("ENV_URL")
try: