mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-01 10:34:51 +00:00
ok
This commit is contained in:
parent
93a49b8b7e
commit
fa409dc29e
1 changed files with 6 additions and 6 deletions
12
update.py
12
update.py
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue