🐛 修复: 移除路径映射函数中的多余日志记录

This commit is contained in:
Jackxwb
2025-04-06 14:52:34 +08:00
parent 627da3a2bc
commit 7f56824b42

View File

@@ -49,7 +49,6 @@ def path_Mapping(mappings, srcPath: str)->str:
# Windows路径处理
srcPath = srcPath.replace("/", "\\")
else:
logger.info(f"路径映射(src): {url} -> {srcPath}")
has_replaced_processed = False
if srcPath.startswith("."):
# 相对路径处理。如果是相对路径可能是Linux路径也可能是Windows路径
@@ -63,7 +62,6 @@ def path_Mapping(mappings, srcPath: str)->str:
elif sign == "\\":
srcPath = srcPath.replace("/", "\\")
has_replaced_processed = True
logger.info(f"\thas_replaced_processed = {has_replaced_processed}")
if has_replaced_processed == False:
# 如果不是相对路径或不能处理默认按照Linux路径处理
srcPath = srcPath.replace("\\", "/")