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

Issue 2110853003: Separate the JNI function that controls logging levels into two. (Closed)

Created:
4 years, 5 months ago by skvlad
Modified:
4 years, 5 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Separate the JNI function that controls logging levels into two. The parameters for Logging.enableTracing() were creating the impression that they control level and severity of one tracing system and they are meant to be used together. In fact the "levels" parameter controlled one tracing system (WEBRTC_TRACE), and the "severity" parameter was responsible for a completely different one: setting the severity level above which log messages from LOG() will be directed to the platform-specific debug output (logcat on Android). The method signature suggested that the "path" parameter applied to both systems - while it was only meaningful for the WEBRTC_TRACE; LOG messages were directed to ADB logcat no matter what the Path value was. It is possible to redirect LOG messages to a file, but that is done using a completely different set of APIs - PeerConnectionFactory.startInternalTracingCapture(). I've separated these two methods to make it more clear which of the parameters controls which system. NOTRY=true Committed: https://crrev.com/4c4cb5b98456cb16d9174485bd59e58a861fd0f5 Cr-Commit-Position: refs/heads/master@{#13334}

Patch Set 1 #

Patch Set 2 : Allow disabling ADB Logcat tracing after it's enabled #

Patch Set 3 : Separated the tracing/logging enabled flags #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -11 lines) Patch
M webrtc/api/java/jni/peerconnection_jni.cc View 1 2 chunks +6 lines, -3 lines 0 comments Download
M webrtc/base/java/src/org/webrtc/Logging.java View 1 2 5 chunks +21 lines, -6 lines 0 comments Download
M webrtc/examples/androidapp/src/org/appspot/apprtc/PeerConnectionClient.java View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 23 (9 generated)
skvlad
4 years, 5 months ago (2016-06-29 18:38:14 UTC) #1
skvlad
added reviewers
4 years, 5 months ago (2016-06-29 19:03:17 UTC) #4
pthatcher1
lgtm
4 years, 5 months ago (2016-06-29 19:05:31 UTC) #5
pthatcher1
lgtm again
4 years, 5 months ago (2016-06-29 19:16:26 UTC) #6
skvlad
Fixed two more things: - separated the loggingEnabled and tracingEnabled flags in Logging.java; now it's ...
4 years, 5 months ago (2016-06-29 20:55:13 UTC) #7
Taylor Brandstetter
lgtm. By the way, you can remove "BUG=" from the description if there's no bug.
4 years, 5 months ago (2016-06-29 21:42:49 UTC) #8
pthatcher1
lgtm lgtm again again
4 years, 5 months ago (2016-06-29 21:54:55 UTC) #9
pthatcher1
lgtm again again
4 years, 5 months ago (2016-06-29 21:55:00 UTC) #10
AlexG
lgtm
4 years, 5 months ago (2016-06-29 22:02:34 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2110853003/40001
4 years, 5 months ago (2016-06-29 22:10:20 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_dbg/builds/14642)
4 years, 5 months ago (2016-06-29 22:17:31 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2110853003/40001
4 years, 5 months ago (2016-06-29 22:28:47 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 5 months ago (2016-06-29 22:30:48 UTC) #20
commit-bot: I haz the power
4 years, 5 months ago (2016-06-29 22:30:58 UTC) #22
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/4c4cb5b98456cb16d9174485bd59e58a861fd0f5
Cr-Commit-Position: refs/heads/master@{#13334}

Powered by Google App Engine
This is Rietveld 408576698