Logs in sanitizer jobs do not get collected
In the sanitizer jobs, not all logs should be archived, but only those for the failing modes. Apparently, there is something broken with the script that does this because currently only the error pattern is archived.