diff options
author | alexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-08 00:41:43 +0000 |
---|---|---|
committer | alexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-08 00:41:43 +0000 |
commit | dd0d21384e3b587426c1536e7a7be63ab667ff8a (patch) | |
tree | 9d59ca8a83e1538828bf7e965171d9085d71ef5f /remoting | |
parent | 91af97b305a83fb6d45e758078e3c2e146c9fb4a (diff) | |
download | chromium_src-dd0d21384e3b587426c1536e7a7be63ab667ff8a.zip chromium_src-dd0d21384e3b587426c1536e7a7be63ab667ff8a.tar.gz chromium_src-dd0d21384e3b587426c1536e7a7be63ab667ff8a.tar.bz2 |
Stop writing logs to %ProgramData%\Chromoting\debug.log (Windows only).
%ProgramData% is read-only for processes running at low integrity level. since the host is now running at low integrity level and logs are written to ETW, this CL quits using debug.log altogether. See http://code.google.com/p/sawbuck/wiki/HowToCaptureLogsOffline for an example how logs can be collected via ETW infrastructure. The Chromoting provider's guid is "{2db51ca1-4fd8-4b88-b5a2-fb8606b66b02}".
BUG=134694
Review URL: https://chromiumcodereview.appspot.com/11776029
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175433 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting')
-rw-r--r-- | remoting/host/logging_win.cc | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/remoting/host/logging_win.cc b/remoting/host/logging_win.cc index 0ab6f59..fa4b7ab 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) // Enable trace control and transport through event tracing for Windows. logging::LogEventProvider::Initialize(kRemotingHostLogProvider); |