commit | 0f402641d07b62c39f271bd764388c664d0e5ad2 | [log] [tgz] |
---|---|---|
author | Andrii Shyshkalov <tandrii@google.com> | Tue May 04 21:04:20 2021 +0000 |
committer | LUCI CQ <infra-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue May 04 21:04:20 2021 +0000 |
tree | 1ea1ce654793617805fbdc7feeb85e5a6325d8e2 | |
parent | e038acc7e1e21fcbb426488129fabc6faf2538df [diff] [blame] |
[auth] log errors from luci-auth token invocation. Motivating example -- seemingly empty output in this build: https://luci-milo.appspot.com/ui/p/devtools-internal/builders/ci/Auto-roll%20-%20frontend/587/overview R=vadimsh Change-Id: I12f1acb1b4852f57057684b26fb153ab74e2da39 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2871721 Reviewed-by: Vadim Shtayura <vadimsh@chromium.org> Reviewed-by: Dirk Pranke <dpranke@google.com> Commit-Queue: Andrii Shyshkalov <tandrii@google.com> Auto-Submit: Andrii Shyshkalov <tandrii@google.com>
diff --git a/auth.py b/auth.py index 204cfb7..b01664b 100644 --- a/auth.py +++ b/auth.py
@@ -159,5 +159,7 @@ return AccessToken( token_info['token'], datetime.datetime.utcfromtimestamp(token_info['expiry'])) - except subprocess2.CalledProcessError: + except subprocess2.CalledProcessError as e: + # subprocess2.CalledProcessError.__str__ nicely formats stdout/stderr. + logging.error('luci-auth token failed: %s', e) return None