diff options
author | Abseil Team <absl-team@google.com> | 2022-07-25 17:15:54 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2022-07-25 17:16:23 -0700 |
commit | 7301e45246607c72541ddcdbceaf3257c0c510d9 (patch) | |
tree | 068e4f75de9ce50cb708fcda72ea1f5e2dce854b /absl | |
parent | 9aca0e4651e9845ab3a7e8f83a1852ff3f3752a2 (diff) | |
download | absl-py-7301e45246607c72541ddcdbceaf3257c0c510d9.tar.gz |
Make it possible to pass keyword args to exception().
PiperOrigin-RevId: 463213585
Change-Id: Ibeea24bb64c116ab5a998032910a033f1c0c08a4
Diffstat (limited to 'absl')
-rw-r--r-- | absl/logging/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/absl/logging/__init__.py b/absl/logging/__init__.py index 8804490..7745ba3 100644 --- a/absl/logging/__init__.py +++ b/absl/logging/__init__.py @@ -407,9 +407,9 @@ def debug(msg, *args, **kwargs): log(DEBUG, msg, *args, **kwargs) -def exception(msg, *args): +def exception(msg, *args, **kwargs): """Logs an exception, with traceback and message.""" - error(msg, *args, exc_info=True) + error(msg, *args, **kwargs, exc_info=True) # Counter to keep track of number of log entries per token. |