mirror of
https://github.com/logos-blockchain/logos-blockchain-e2e-tests.git
synced 2026-01-09 00:23:07 +00:00
fix: skip DEBUG and TRACE lines without matching keywords
This commit is contained in:
parent
9a95908fb7
commit
71a481c27f
@ -56,7 +56,7 @@ class LogTfidf:
|
|||||||
df.columns = ["d1", "d2"] # Simplified column naming for clarity
|
df.columns = ["d1", "d2"] # Simplified column naming for clarity
|
||||||
df = df.sort_values(by="d2", ascending=False)
|
df = df.sort_values(by="d2", ascending=False)
|
||||||
pattern = "|".join(keywords)
|
pattern = "|".join(keywords)
|
||||||
df = df[~((df["d1"].str.contains("INFO")) & (~df["d1"].str.contains(pattern)))]
|
df = df[~((df["d1"].str.contains("INFO|DEBUG|TRACE")) & (~df["d1"].str.contains(pattern)))]
|
||||||
|
|
||||||
# Normalize and deduplicate
|
# Normalize and deduplicate
|
||||||
df["d1_normalized"] = df["d1"].apply(normalize_log_message)
|
df["d1_normalized"] = df["d1"].apply(normalize_log_message)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user