From e8bc9d8e5b8e47259efb6ee79cdf08b634508e85 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Sat, 24 Jun 2023 01:15:11 +0200 Subject: [PATCH] [MIRROR] Update runtime condenser for new logs. [MDB IGNORE] (#21980) * Update runtime condenser for new logs. (#76233) * Update runtime condenser for new logs. --------- Co-authored-by: Kyle Spier-Swenson --- tools/Runtime Condenser/Main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/Runtime Condenser/Main.cpp b/tools/Runtime Condenser/Main.cpp index 4633408e50e..6985008366f 100644 --- a/tools/Runtime Condenser/Main.cpp +++ b/tools/Runtime Condenser/Main.cpp @@ -131,6 +131,10 @@ inline void forward_progress(FILE * inputFile) { else if (nextLine->length() >= 26 && ((*nextLine)[0] == '[' && (*nextLine)[5] == '-' && (*nextLine)[14] == ':' && (*nextLine)[20] == '.' && (*nextLine)[24] == ']')) nextLine->erase(0, 26); } + //strip out log cats + if (nextLine->length() >= 9 && safe_substr(nextLine, 0, 9) == "RUNTIME: ") { + nextLine->erase(0, 9); + } } while (!endofbuffer && nextLine->length() < 1); }