mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-20 04:12:42 +00:00
shadowmire.py: update to taoky/shadowmire@4e20615ed6
Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
This commit is contained in:
parent
1b97fd4c77
commit
1683a1d751
@ -29,7 +29,6 @@ from tqdm import tqdm
|
|||||||
from requests.adapters import HTTPAdapter, Retry
|
from requests.adapters import HTTPAdapter, Retry
|
||||||
|
|
||||||
LOG_FORMAT = "%(asctime)s %(levelname)s: %(message)s (%(filename)s:%(lineno)d)"
|
LOG_FORMAT = "%(asctime)s %(levelname)s: %(message)s (%(filename)s:%(lineno)d)"
|
||||||
logging.basicConfig(format=LOG_FORMAT)
|
|
||||||
logger = logging.getLogger("shadowmire")
|
logger = logging.getLogger("shadowmire")
|
||||||
|
|
||||||
|
|
||||||
@ -961,7 +960,7 @@ def read_config(
|
|||||||
@click.pass_context
|
@click.pass_context
|
||||||
def cli(ctx: click.Context, repo: str) -> None:
|
def cli(ctx: click.Context, repo: str) -> None:
|
||||||
log_level = logging.DEBUG if os.environ.get("DEBUG") else logging.INFO
|
log_level = logging.DEBUG if os.environ.get("DEBUG") else logging.INFO
|
||||||
logging.basicConfig(level=log_level)
|
logging.basicConfig(level=log_level, format=LOG_FORMAT)
|
||||||
ctx.ensure_object(dict)
|
ctx.ensure_object(dict)
|
||||||
|
|
||||||
if WORKERS > 10:
|
if WORKERS > 10:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user