mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-07 04:14: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 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:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue