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