fix: Log.go文件的已知错误

This commit is contained in:
ZacharyZcR 2024-12-19 16:11:04 +08:00
parent b14510fa52
commit 0cfbf40baf

View File

@ -145,19 +145,14 @@ func CheckErrs(err error) bool {
// 已知错误列表 // 已知错误列表
errs := []string{ errs := []string{
"远程主机关闭连接", "closed by the remote host", "too many connections",
"连接数过多", "i/o timeout", "EOF", "A connection attempt failed",
"连接超时", "established connection failed", "connection attempt failed",
"EOF", "Unable to read", "is not allowed to connect to this",
"连接尝试失败", "no pg_hba.conf entry",
"建立连接失败", "No connection could be made",
"无法连接", "invalid packet size",
"无法读取数据", "bad connection",
"不允许连接",
"无pg_hba.conf配置项",
"无法建立连接",
"无效的数据包大小",
"连接异常",
} }
// 检查错误是否匹配 // 检查错误是否匹配