You've already forked favicon-api-v3
25.09.03
This commit is contained in:
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user