Commit ca01b49f authored by 智勇's avatar 智勇

增加日志

parent 62ccd676
......@@ -87,11 +87,13 @@ const callback = async (ctx) => {
url: `${data.content.ceTaskUrl}`,
method: 'GET',
})
logger.info(data.projectName, data.branchName, data.branchHash, '的分析任务执行信息:', ceTaskResult.task.status, ceTaskResult)
if (ceTaskResult.task.status === 'SUCCESS') {
executionTimeMs = ceTaskResult.task.executionTimeMs
flag = false
}
await sleep(1 * 1000)
await sleep(2 * 1000)
}
const res = await awaitRequest({
url: `${config.sonarHost}/api/project_branches/list?project=${data.projectName}`,
......@@ -193,7 +195,6 @@ const fetchQuality = async (ctx) => {
return prev
}, {})
const res = []
for (const i in data) {
if (Object.prototype.hasOwnProperty.call(data, i)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment