Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(194)

Issue 1069373002: Add Exception stack trace support to base.Log (Closed)

Created:
5 years, 8 months ago by dgn
Modified:
5 years, 8 months ago
Reviewers:
Peter Beverloo, Yaron
CC:
chromium-reviews, erikwright+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add Exception stack trace support to base.Log When logging errors (Log.e), if the last argument is an exception, its trace will be logged, like what happens with android.util.Log. If the exception is used as argument for the format string, its toString will be used in the message, then the trace will also be printed, provided that it's the last argument. BUG=474599 Committed: https://crrev.com/3c0c5b2708bc19d56ae4fc2609df0a2e5f3ff906 Cr-Commit-Position: refs/heads/master@{#324262}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Add throwable support everywhere, add Log#wtf #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -10 lines) Patch
M base/android/java/src/org/chromium/base/Log.java View 1 5 chunks +80 lines, -10 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
dgn
PTAL peter@: this should allow logging exceptions in your CL Usage and output examples: Log.FOO.e(TAG, ...
5 years, 8 months ago (2015-04-08 11:16:21 UTC) #2
Yaron
joc: why only for error? https://codereview.chromium.org/1069373002/diff/1/base/android/java/src/org/chromium/base/Log.java File base/android/java/src/org/chromium/base/Log.java (right): https://codereview.chromium.org/1069373002/diff/1/base/android/java/src/org/chromium/base/Log.java#newcode282 base/android/java/src/org/chromium/base/Log.java:282: * @param args Arguments ...
5 years, 8 months ago (2015-04-08 15:41:23 UTC) #3
dgn
I had no real reason to make the change only for error, so I just ...
5 years, 8 months ago (2015-04-08 16:19:02 UTC) #4
Yaron
lgtm
5 years, 8 months ago (2015-04-08 16:32:06 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1069373002/20001
5 years, 8 months ago (2015-04-08 17:49:23 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 8 months ago (2015-04-08 19:05:48 UTC) #8
commit-bot: I haz the power
5 years, 8 months ago (2015-04-08 19:06:46 UTC) #9
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/3c0c5b2708bc19d56ae4fc2609df0a2e5f3ff906
Cr-Commit-Position: refs/heads/master@{#324262}

Powered by Google App Engine
This is Rietveld 408576698