优化错误日志处理

This commit is contained in:
刘祥超
2023-08-13 14:25:59 +08:00
parent 0a290251cd
commit 288074c8b3
3 changed files with 13 additions and 5 deletions

View File

@@ -53,7 +53,11 @@ func (this *OCSPUpdateTask) Start() {
for range this.ticker.C {
err := this.Loop()
if err != nil {
remotelogs.Warn("OCSPUpdateTask", "update ocsp failed: "+err.Error())
if rpc.IsConnError(err) {
remotelogs.Debug("OCSPUpdateTask", "update ocsp failed: "+err.Error())
} else {
remotelogs.Warn("OCSPUpdateTask", "update ocsp failed: "+err.Error())
}
}
}
}