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

Issue 1239583004: Cut the spam in the dart handler log printouts. (Closed)

Created:
5 years, 5 months ago by ppi
Modified:
5 years, 5 months ago
Reviewers:
qsr
CC:
mojo-reviews_chromium.org, gregsimon, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org, tonyg
Base URL:
git@github.com:domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Cut the spam in the dart handler log printouts. This patch eliminates the tag "[0708/123945:INFO:builtin_natives.cc(86)] CONSOLE "prefixing each message in dart content handler log Android output by implementing the Android logging directly, ie. without base LOG macros. The log message is now written directly to stdout on Android as well as on Linux, and also written to android logcat tagged as "chromium", which is the tag we use to pick up native LOG messages from the logcat when running on unrooted device. A user running mojo_shell.py on a rooted device will now see: hello instead of [0715/174636:INFO:builtin_natives.cc(86)] CONSOLE: hello A user running mojo_shell.py on unrooted device will now see: I/chromium(29585): hello instead of I/chromium(26587): [0715/174636:INFO:builtin_natives.cc(86)] CONSOLE: hello Fixes #309. R=qsr@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/f61746083fee43866e7905d96fbb9becc8d6af64

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address Ben's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -5 lines) Patch
M mojo/dart/embedder/builtin_natives.cc View 1 2 chunks +12 lines, -5 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
ppi
Hi Ben, ptal.
5 years, 5 months ago (2015-07-15 16:24:27 UTC) #2
qsr
LGTM with nits. https://codereview.chromium.org/1239583004/diff/1/mojo/dart/embedder/builtin_natives.cc File mojo/dart/embedder/builtin_natives.cc (right): https://codereview.chromium.org/1239583004/diff/1/mojo/dart/embedder/builtin_natives.cc#newcode99 mojo/dart/embedder/builtin_natives.cc:99: __android_log_print(ANDROID_LOG_INFO, "chromium", str_newline.c_str()); Do android_log_print needs ...
5 years, 5 months ago (2015-07-16 08:31:39 UTC) #3
ppi
Thanks! https://codereview.chromium.org/1239583004/diff/1/mojo/dart/embedder/builtin_natives.cc File mojo/dart/embedder/builtin_natives.cc (right): https://codereview.chromium.org/1239583004/diff/1/mojo/dart/embedder/builtin_natives.cc#newcode99 mojo/dart/embedder/builtin_natives.cc:99: __android_log_print(ANDROID_LOG_INFO, "chromium", str_newline.c_str()); On 2015/07/16 08:31:39, qsr wrote: ...
5 years, 5 months ago (2015-07-16 09:41:27 UTC) #4
ppi
5 years, 5 months ago (2015-07-16 09:41:41 UTC) #5
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
f61746083fee43866e7905d96fbb9becc8d6af64 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698