forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reland "[remoting] Add GN switch for WebRTC debug logs."
This is a reland of f790c4c Original change's description: > [remoting] Add GN switch for WebRTC debug logs. > > In the host process, the WebRTC "VERBOSE1" logs are extremely spammy, > and they cannot be filtered separately from "INFO" messages using --v or > --vmodule switches (the third_party/webrtc_overrides implementation sets > them to the same log verbosity level). > > To make these logs optional and easy to enable, this CL provides a > GN argument "remoting_webrtc_verbose_logging" with a default value of > false. Because of the huge amount of logs generated, this is set to > false even for Debug builds. > > This CL also replaces AppendSwitch(..) with the corrected call to > AppendSwitchASCII(). The former, when passed "key=value", would set a > command-line switch literally named "key=value", whose value was an > empty string. So the WebRTC debug logs were never enabled even in Debug > builds. > > Change-Id: I2a3b5c0130f4bb004b1ebf7433fc5097513b6559 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2725024 > Commit-Queue: Lambros Lambrou <lambroslambrou@chromium.org> > Auto-Submit: Lambros Lambrou <lambroslambrou@chromium.org> > Reviewed-by: Joe Downing <joedow@chromium.org> > Cr-Commit-Position: refs/heads/master@{#858408} Change-Id: Id3f54cc9cb6a24bc2214e6d64e3ef485ac591516 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2726819 Auto-Submit: Lambros Lambrou <lambroslambrou@chromium.org> Commit-Queue: Joe Downing <joedow@chromium.org> Reviewed-by: Joe Downing <joedow@chromium.org> Cr-Commit-Position: refs/heads/master@{#858477}
- Loading branch information
Lambros Lambrou
authored and
Chromium LUCI CQ
committed
Mar 1, 2021
1 parent
a390476
commit 895fc6d
Showing
8 changed files
with
68 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Copyright 2021 The Chromium Authors. All rights reserved. | ||
# Use of this source code is governed by a BSD-style license that can be | ||
# found in the LICENSE file. | ||
|
||
declare_args() { | ||
# Enabling this will cause WebRTC's LS_INFO and LS_VERBOSE (level 1) | ||
# messages to appear in the debug log output. Note that WebRTC's | ||
# "VERBOSE1" messages are very spammy and it is impossible to | ||
# separately filter LS_INFO and LS_VERBOSE messages (see | ||
# third_party/webrtc_overrides/rtc_base/). So a separate GN option is | ||
# provided here, to allow this logging to be quickly enabled for Debug | ||
# or Release builds. | ||
remoting_webrtc_verbose_logging = false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Copyright 2021 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#include "remoting/host/logging.h" | ||
|
||
#include "base/command_line.h" | ||
|
||
namespace remoting { | ||
|
||
void InitHostLoggingCommon() { | ||
#ifdef WEBRTC_VERBOSE_LOGGING | ||
base::CommandLine::ForCurrentProcess()->AppendSwitchASCII("vmodule", | ||
"*/webrtc/*=1"); | ||
#endif | ||
} | ||
|
||
} // namespace remoting |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters