[collector,webapp]开放sitemap全站类型监控

This commit is contained in:
tomsun28
2022-02-16 09:35:28 +08:00
parent e6673325a8
commit 6d37d5bc14
6 changed files with 30 additions and 19 deletions

View File

@@ -207,7 +207,7 @@ public class HttpCollectImpl extends AbstractCollect {
}
}
} catch (Exception e) {
log.warn(e.getMessage(), e);
log.warn(e.getMessage());
isXmlFormat = false;
}
// 若xml解析失败 用txt格式解析
@@ -222,14 +222,8 @@ public class HttpCollectImpl extends AbstractCollect {
log.warn(e.getMessage(), e);
}
}
// todo siteUrl 限制数量
// 开始循环访问每个site url 采集其 http status code, responseTime, 异常信息
int maxUrlNum = 100;
for (String siteUrl : siteUrls) {
maxUrlNum --;
if (maxUrlNum <= 0) {
break;
}
String errorMsg = "";
Integer statusCode = null;
long startTime = System.currentTimeMillis();