Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(679)

Unified Diff: remoting/host/logging_win.cc

Issue 11776029: Stop writing logs to %ProgramData%\Chromoting\debug.log (Windows only). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/logging_win.cc
diff --git a/remoting/host/logging_win.cc b/remoting/host/logging_win.cc
index 0ab6f597ecdf5d6e51f0edccc7501f2dbd9ca946..fa4b7ab95c570133b51518e4aaaa84208f8cf677 100644
--- a/remoting/host/logging_win.cc
+++ b/remoting/host/logging_win.cc
@@ -6,10 +6,8 @@
#include <guiddef.h>
-#include "base/file_path.h"
#include "base/logging.h"
#include "base/logging_win.h"
-#include "remoting/host/branding.h"
// {2db51ca1-4fd8-4b88-b5a2-fb8606b66b02}
const GUID kRemotingHostLogProvider =
@@ -19,25 +17,13 @@ const GUID kRemotingHostLogProvider =
namespace remoting {
void InitHostLogging() {
-#if defined(NDEBUG)
- // Write logs to the system debug log in release build.
+ // Write logs to the system debug log.
logging::InitLogging(
NULL,
logging::LOG_ONLY_TO_SYSTEM_DEBUG_LOG,
- logging::LOCK_LOG_FILE,
+ logging::DONT_LOCK_LOG_FILE,
logging::DELETE_OLD_LOG_FILE,
logging::DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS);
-#else // !defined(NDEBUG)
- // Write logs to a file in debug build.
- FilePath debug_log = remoting::GetConfigDir().
- Append(FILE_PATH_LITERAL("debug.log"));
- logging::InitLogging(
- debug_log.value().c_str(),
- logging::LOG_ONLY_TO_FILE,
- logging::LOCK_LOG_FILE,
- logging::DELETE_OLD_LOG_FILE,
- logging::DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS);
-#endif // !defined(NDEBUG)
Jamie 2013/01/07 18:31:21 This disables logging entirely for debug builds, c
alexeypa (please no reviews) 2013/01/07 19:10:31 This disables logging to a file. Logging to ETW is
// Enable trace control and transport through event tracing for Windows.
logging::LogEventProvider::Initialize(kRemotingHostLogProvider);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698