@@ -305,7 +305,7 @@ func checktask() {
if sp.Channel == "" {
sp.Channel = sp.Site
}
- InsertInto(
+ err := InsertInto(
"jy_logs",
"sp_healthcheck",
[]influxdb.Tag{
@@ -326,6 +326,9 @@ func checktask() {
time.Now(),
"7d",
)
+ if err != nil {
+ log.Println("InsertInto_err:", err)
+ }
lock.Unlock()
log.Println(k, sp.Site, sp.Channel, sp.Code, sp.ResponseCode)