Skip to content

Commit

Permalink
Add thread name and number to cobalt log output. (#3051)
Browse files Browse the repository at this point in the history
The default logging items exclude the thread. This enables the thread
prefix on the log output.

b/223411660
  • Loading branch information
jellefoks committed Apr 25, 2024
1 parent 620f6c9 commit f98472b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cobalt/base/init_cobalt.cc
Expand Up @@ -37,6 +37,12 @@ base::LazyInstance<std::string>::DestructorAtExit::DestructorAtExit

void InitCobalt(int argc, char* argv[], const char* link) {
base::CommandLine::Init(argc, argv);

logging::LoggingSettings settings;
settings.logging_dest = logging::LOG_TO_SYSTEM_DEBUG_LOG;
logging::InitLogging(settings);
logging::SetLogItems(false, true, true, false);

if (link) {
s_initial_deep_link.Get() = link;
}
Expand Down

0 comments on commit f98472b

Please sign in to comment.