Commit f4b86b70 authored by Mohit Hotwani's avatar Mohit Hotwani Committed by Commit Bot

[chromecast] Add process/thread id to the logs.

Also remove the timestamp since logd adds the timestamp. This
makes the logs similar to cast.

Bug: internal b/152558058
Change-Id: Ifda50ed1115e2192aaa7887440aba7a02341ef09
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2123507Reviewed-by: default avatarKenneth MacKay <kmackay@chromium.org>
Commit-Queue: Mohit Hotwani <hmohit@chromium.org>
Cr-Commit-Position: refs/heads/master@{#755445}
parent 34714b2d
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
#include "base/feature_list.h" #include "base/feature_list.h"
#include "base/logging.h" #include "base/logging.h"
#include "build/build_config.h" #include "build/build_config.h"
#include "chromecast/chromecast_buildflags.h"
#if !defined(OS_ANDROID) && !defined(OS_FUCHSIA) #if !defined(OS_ANDROID) && !defined(OS_FUCHSIA)
#include "chromecast/external_mojo/external_service_support/crash_reporter_client.h" #include "chromecast/external_mojo/external_service_support/crash_reporter_client.h"
...@@ -36,6 +37,13 @@ void CommonProcessInitialization(int argc, char** argv) { ...@@ -36,6 +37,13 @@ void CommonProcessInitialization(int argc, char** argv) {
logging::LOG_TO_SYSTEM_DEBUG_LOG | logging::LOG_TO_STDERR; logging::LOG_TO_SYSTEM_DEBUG_LOG | logging::LOG_TO_STDERR;
logging::InitLogging(settings); logging::InitLogging(settings);
#if BUILDFLAG(IS_CAST_DESKTOP_BUILD)
logging::SetLogItems(true, true, true, false);
#else
// Timestamp available through logcat -v time.
logging::SetLogItems(true, true, false, false);
#endif // BUILDFLAG(IS_CAST_DESKTOP_BUILD)
base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
base::FeatureList::InitializeInstance( base::FeatureList::InitializeInstance(
command_line->GetSwitchValueASCII(switches::kEnableFeatures), command_line->GetSwitchValueASCII(switches::kEnableFeatures),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment