#22622 Improve log parsing of lgp build