Merge pull request #776 from thsrite/main

fix 更新log
This commit is contained in:
jxxghp 2023-10-10 13:44:39 +08:00 committed by GitHub
commit 5946684ee6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -211,7 +211,7 @@ class CustomHosts(_PluginBase):
# 添加新的Hosts # 添加新的Hosts
system_hosts.add(new_entrys) system_hosts.add(new_entrys)
system_hosts.write() system_hosts.write()
logger.info("更新系统hosts文件成功") logger.info("更新系统hosts文件成功容器运行则更新容器hosts")
except Exception as err: except Exception as err:
err_flag = True err_flag = True
logger.error(f"更新系统hosts文件失败{str(err) or '请检查权限'}") logger.error(f"更新系统hosts文件失败{str(err) or '请检查权限'}")