This commit is contained in:
jinql
2025-09-03 20:07:41 +08:00
parent a5290c5e03
commit 452e110ee5
15 changed files with 156 additions and 47 deletions

View File

@@ -10,7 +10,7 @@ import urllib3
# 配置日志
urllib3.disable_warnings()
logging.captureWarnings(True)
logger = logging.getLogger()
logger = logging.getLogger(__name__)
class FileUtil:
@@ -244,7 +244,7 @@ class FileUtil:
with open(file_path, mode, encoding=encoding) as f:
f.write(content)
logger.info(f"文件写入成功: {file_path}")
# logger.info(f"文件写入成功: {file_path}")
return True
except PermissionError:
logger.error(f"没有权限写入文件: {file_path}")