diff --git a/app/Controllers/Http/LogsController.ts b/app/Controllers/Http/LogsController.ts index 1ceb2fc..f0a9eea 100644 --- a/app/Controllers/Http/LogsController.ts +++ b/app/Controllers/Http/LogsController.ts @@ -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]); } } diff --git a/app/utils/runtimeCheckLogs.ts b/app/utils/runtimeCheckLogs.ts index 6f9f85e..fbf358c 100644 --- a/app/utils/runtimeCheckLogs.ts +++ b/app/utils/runtimeCheckLogs.ts @@ -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"),