update highlight
This commit is contained in:
parent
0c603d26d6
commit
2fc2a0632a
|
|
@ -82,13 +82,6 @@ export default class LogsController {
|
|||
|
||||
if (checkSpecialVersion(line) !== "") {
|
||||
const specialVersion = checkSpecialVersion(line)
|
||||
// console.log("version ", specialVersion)
|
||||
console.log("data.search ", data[index].indexOf(specialVersion))
|
||||
console.log(data[index].slice(0, data[index].indexOf(specialVersion)))
|
||||
console.log(specialVersion)
|
||||
console.log(data[index].slice(data[index].indexOf(specialVersion) + specialVersion.length))
|
||||
// console.log("data.length ", data[index].length)
|
||||
// console.log(data[index].slice(0, data[index].indexOf(await specialVersion-specialVersion.length)))
|
||||
data[index] =
|
||||
data[index].slice(0, data[index].indexOf(specialVersion))
|
||||
+
|
||||
|
|
@ -125,10 +118,8 @@ export default class LogsController {
|
|||
modelSpecialDetected.push(data[u - 1]);
|
||||
} else {
|
||||
if (checkSpecialVersion(data[u - 1]) !== "") {
|
||||
console.log("GOOD")
|
||||
modelSpecialDetected.push(data[u - 1]);
|
||||
} else {
|
||||
console.log("ISSUE")
|
||||
issueSpecialDetected.push(data[u - 1]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -406,12 +406,14 @@ export async function runtimeCheckLogs(folderPath) {
|
|||
")\n";
|
||||
});
|
||||
|
||||
let icon =
|
||||
important.filter((i) => content.includes(i)).length > 0
|
||||
? "------------\n\n:no_entry: :no_entry:**" +
|
||||
let icon = ""
|
||||
if (checkSpecialVersion(content) !== "" || important.filter((i) => content.includes(i)).length > 0) {
|
||||
"------------\n\n:no_entry: :no_entry:**" +
|
||||
fileName +
|
||||
"**:no_entry: :no_entry:"
|
||||
: "------------\n\n:warning: :warning: **" + fileName + "**";
|
||||
} else {
|
||||
"------------\n\n:warning: :warning: **" + fileName + "**";
|
||||
}
|
||||
sendMessToZulip(
|
||||
"stream",
|
||||
Env.get("ZULIP_STREAM_ALERT"),
|
||||
|
|
|
|||
Loading…
Reference in New Issue