[infra_libs] Add --logs-max-length to truncate too long log lines.
Motivation: CQ or one of its libraries once in a while logs >400KB
in a single log entry. Cloud Logging doesn't accept more than 256KB,
so CQ logs are thus lost. It's better to have truncated lines instead.
Test: unittest + locally for full coverage.
Reviewed-by: Vadim Shtayura <email@example.com>
Commit-Queue: Andrii Shyshkalov <firstname.lastname@example.org>
2 files changed