chore: adjust default logging format

Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
This commit is contained in:
Shengqi Chen 2024-08-08 15:26:59 +08:00
parent ef78113c5e
commit 32e611b663
No known key found for this signature in database
GPG Key ID: 6EE389C0F18AF774

View File

@ -28,8 +28,9 @@ import click
from tqdm import tqdm 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)"
logger = logging.getLogger(__name__) logging.basicConfig(format=LOG_FORMAT)
logger = logging.getLogger("shadowmire")
USER_AGENT = "Shadowmire (https://github.com/taoky/shadowmire)" USER_AGENT = "Shadowmire (https://github.com/taoky/shadowmire)"