diff options
Diffstat (limited to 'webrtc/test/test_main.cc')
-rw-r--r-- | webrtc/test/test_main.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/webrtc/test/test_main.cc b/webrtc/test/test_main.cc index 733831f5be..a435575f88 100644 --- a/webrtc/test/test_main.cc +++ b/webrtc/test/test_main.cc @@ -10,6 +10,7 @@ #include "gflags/gflags.h" #include "testing/gtest/include/gtest/gtest.h" +#include "webrtc/base/logging.h" #include "webrtc/test/field_trial.h" #include "webrtc/test/testsupport/fileutils.h" @@ -21,6 +22,11 @@ DEFINE_string(force_fieldtrials, "", int main(int argc, char* argv[]) { ::testing::InitGoogleTest(&argc, argv); + // Default to LS_INFO, even for release builds to provide better test logging. + // TODO(pbos): Consider adding a command-line override. + if (rtc::LogMessage::GetLogToDebug() > rtc::LS_INFO) + rtc::LogMessage::LogToDebug(rtc::LS_INFO); + // AllowCommandLineParsing allows us to ignore flags passed on to us by // Chromium build bots without having to explicitly disable them. google::AllowCommandLineReparsing(); |