zhangjinkun 7 years ago
parent
commit
4c064b229e
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/spidersitecheck/main.go

+ 4 - 1
src/spidersitecheck/main.go

@@ -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)