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

Issue 1237403002: Cut the spam in sky log printouts. (Closed)

Created:
5 years, 5 months ago by ppi
Modified:
5 years, 5 months ago
Reviewers:
abarth-chromium
CC:
abarth-chromium, gregsimon, jackson_old, mojo-reviews_chromium.org, qsr+mojo_chromium.org
Base URL:
git@github.com:domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Cut the spam in the sky log printouts. This is a port of https://github.com/domokit/mojo/commit/f61746083fee43866e7905d96fbb9becc8d6af64 . This patch eliminates the tag "[0708/123945:INFO:builtin_natives.cc(86)] CONSOLE" prefixing each message in sky 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 iOS, and is 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 --sky` 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 --sky` 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 #317. R=abarth@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/f409a9cc36b48da1853b1074b30be8e526d11cd3

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address Adam's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -8 lines) Patch
M sky/engine/bindings/builtin_natives.cc View 1 2 chunks +11 lines, -8 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
ppi
Hi Adam, this would match what we did for the dart content handler in https://codereview.chromium.org/1239583004/. ...
5 years, 5 months ago (2015-07-16 11:08:52 UTC) #2
abarth-chromium
LGTM https://codereview.chromium.org/1237403002/diff/1/sky/engine/bindings/builtin_natives.cc File sky/engine/bindings/builtin_natives.cc (right): https://codereview.chromium.org/1237403002/diff/1/sky/engine/bindings/builtin_natives.cc#newcode174 sky/engine/bindings/builtin_natives.cc:174: // logcat output to host terminal. Please remove ...
5 years, 5 months ago (2015-07-16 14:17:55 UTC) #3
ppi
https://codereview.chromium.org/1237403002/diff/1/sky/engine/bindings/builtin_natives.cc File sky/engine/bindings/builtin_natives.cc (right): https://codereview.chromium.org/1237403002/diff/1/sky/engine/bindings/builtin_natives.cc#newcode174 sky/engine/bindings/builtin_natives.cc:174: // logcat output to host terminal. On 2015/07/16 14:17:55, ...
5 years, 5 months ago (2015-07-16 16:18:47 UTC) #5
ppi
5 years, 5 months ago (2015-07-16 16:19:06 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 (id:40001) manually as
f409a9cc36b48da1853b1074b30be8e526d11cd3 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698