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