summaryrefslogtreecommitdiffstats
path: root/mojo
diff options
context:
space:
mode:
authorxhwang <xhwang@chromium.org>2014-12-23 20:59:33 -0800
committerCommit bot <commit-bot@chromium.org>2014-12-24 05:00:16 +0000
commitcc4dd67b73054f97707e04de95a1c7de3e3d9396 (patch)
treeff83735644a56eae2b2cf92d589c1ec5497dcc3d /mojo
parent697b5dc34dfe7c4cf4e11e71b79e18cefaf7282b (diff)
downloadchromium_src-cc4dd67b73054f97707e04de95a1c7de3e3d9396.zip
chromium_src-cc4dd67b73054f97707e04de95a1c7de3e3d9396.tar.gz
chromium_src-cc4dd67b73054f97707e04de95a1c7de3e3d9396.tar.bz2
Enable logging in mojo:media app.
Example to enable logging in both html_viewer and media app: out/GN/mojo_shell http://<host>/bear-src-a.html --args-for='mojo://html_viewer --enable-mojo-media-renderer --vmodule=*mojo_render*=3' --args-for='mojo://media --vmodule=*service*=3' TBR=jamesr@chromium.org BUG=432998,434802 TEST=See above. R=jrummell@chromium.org Review URL: https://codereview.chromium.org/823853003 Cr-Commit-Position: refs/heads/master@{#309617}
Diffstat (limited to 'mojo')
-rw-r--r--mojo/services/html_viewer/html_viewer.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/mojo/services/html_viewer/html_viewer.cc b/mojo/services/html_viewer/html_viewer.cc
index fae69bb..e8236b5 100644
--- a/mojo/services/html_viewer/html_viewer.cc
+++ b/mojo/services/html_viewer/html_viewer.cc
@@ -174,6 +174,8 @@ class HTMLViewer : public mojo::ApplicationDelegate,
logging::LoggingSettings settings;
settings.logging_dest = logging::LOG_TO_SYSTEM_DEBUG_LOG;
logging::InitLogging(settings);
+ // Display process ID, thread ID and timestamp in logs.
+ logging::SetLogItems(true, true, true, false);
bool enable_mojo_media_renderer =
command_line->HasSwitch(kEnableMojoMediaRenderer);