OSDN Git Service

GD-HCI: Change StopWatch log from INFO to DEBUG
authorJack He <siyuanh@google.com>
Tue, 6 Oct 2020 22:23:28 +0000 (15:23 -0700)
committerJack He <siyuanh@google.com>
Tue, 6 Oct 2020 22:23:28 +0000 (15:23 -0700)
* So that it is disabled by default

Bug: 164973960
Test: manual testing
Tag: #gd-refactor
Change-Id: If65ff532621f53f9ccf554121d702c3c41da5a96

gd/common/stop_watch.cc

index 40f316d..7043465 100644 (file)
@@ -34,11 +34,11 @@ StopWatch::StopWatch(std::string text)
   ss << std::put_time(std::localtime(&now_time_t), "%Y-%m-%d %H:%M:%S");
   ss << '.' << std::setfill('0') << std::setw(3) << millis.count();
   start_timestamp_ = ss.str();
-  LOG_INFO(" %s: %s:", start_timestamp_.c_str(), text_.c_str());
+  LOG_DEBUG(" %s: %s:", start_timestamp_.c_str(), text_.c_str());
 }
 
 StopWatch::~StopWatch() {
-  LOG_INFO(
+  LOG_DEBUG(
       "%s: %s: took %zu us",
       start_timestamp_.c_str(),
       text_.c_str(),